355058b80d
Every user open first probes its route (sharedPrimaryRoute / isAttachedSharedRemote) with getConnection / getConnectionFor, and only then dials the secondary. With #102496 only the second dial carried priority: 'foreground', so main started (or joined) the spawn as a background slot wait on the probe and the click still waited out the probe's 20 s RECONNECT_ATTEMPT_TIMEOUT_MS before promotion kicked in. Thread the priority into both probes; the activation doors (ensureGatewayForProfile / ensureGatewayForAgent) pass 'foreground' explicitly. Also drop the renderer-side isBackgroundSlotWaitTimeout + the try/catch whose two branches both rethrew: Electron rebuilds IPC rejections as a plain Error, so name/silent/priority never reached the renderer and the helper was dead. Test: gateway-spawn-priority.test.ts asserts every dial of a foreground open carries the tag and an untagged open never does (red on the #102496 head).