mirror of
https://github.com/openai/codex.git
synced 2026-09-10 20:26:47 +00:00
## Why Detached Windows processes cannot receive console signals, so app-server daemons need another way to enter the existing graceful and forced shutdown flow. ## What changed - Watch the path in `CODEX_DAEMON_SHUTDOWN_FILE` for a request addressed to the current process, and consume only a matching PID. - Race daemon shutdown requests with Ctrl-C on Windows while leaving unmanaged launches on the existing console-signal path. - Exercise the SIGTERM-equivalent graceful and forced WebSocket shutdown cases on Windows. ## Testing Added unit coverage ensuring inherited control paths and malformed requests cannot consume another process's shutdown request. GitOrigin-RevId: 426a3c12edc344802395d4d26288f2bb015c484f