mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 19:07:41 +00:00
The WSL distro holder was spawned with DETACHED_PROCESS, so it had no console. System32's wsl.exe then starts the WSL package's wsl.exe, a console program, and Windows gave it a new visible console: an empty terminal window on every Orca start with a saved WSL host, which also killed the holder when closed. Use CREATE_NO_WINDOW in place of DETACHED_PROCESS so the holder owns a hidden console that its children inherit. The flags cannot be combined (Windows ignores CREATE_NO_WINDOW with DETACHED_PROCESS). The new process group, job breakaway retry and NUL-only handle list are unchanged. Fixes #41125 Co-authored-by: Neil <neil@stably.ai>