Two launcher defects in cmd_gui's packaged launch path:
- On Windows the packaged Desktop was spawned with a console-inheriting
subprocess.run, so closing the launching shell sent CTRL_CLOSE_EVENT
down the process group and killed the app with it, while Electron/Node
stdout flooded (and, under cp936, mojibaked) the parent terminal.
Spawn it detached instead — CREATE_NEW_PROCESS_GROUP|DETACHED_PROCESS
(+ CREATE_BREAKAWAY_FROM_JOB with a no-breakaway fallback), DEVNULL
stdio — and exit 0 immediately, like the bundled launcher and
gateway_windows._spawn_detached. macOS/Linux keep the foreground run.
- On the foreground platforms, Ctrl-C in the attached terminal raised a
raw KeyboardInterrupt traceback out of the CLI instead of a clean
close. Catch it and exit 0 with a short message.
Co-authored-by: briandevans <252620095+briandevans@users.noreply.github.com>
Co-authored-by: webtecnica <75556242+webtecnica@users.noreply.github.com>