* fix(desktop): harden external protocol handling * fix(build): avoid optional peer resolution in dev