runGatewayEnsure layered the Desktop process env under the child, so a dev build's `gateway ensure` (and `gateway restart`) handed HERMES_DESKTOP_DEV_SERVER to the per-host gateway it starts. That gateway outlives the dev session and kept trusting the renderer port (Vite's 5174 fallback) for CORS and sockets afterwards. Desktop never needs it there: its HTTP to the local gateway goes through main-process requests with no Origin, and its socket dials have Origin stripped. The variable is now removed from the ensure client env; SSH-spawned serve backends still receive it.
local-gateway.test.ts: the new case reported the inherited value before this change and none after.