mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
## Why The PID-managed app-server lifecycle previously supported Unix only, leaving Windows unable to start and stop the managed daemon. ## What changed - Launch the Windows daemon as a detached process and fail clearly when the host Job Object prevents detachment. - Add Windows file locking and process creation-time checks so stale or reused PIDs cannot cause an unrelated process to be terminated. - Request graceful shutdown through a shutdown file, then terminate the verified process after the grace period. - Prepare private daemon state directories consistently and pin the executable path across installer junction updates. ## Testing Add Windows tests for process-query permissions, reused and inaccessible PIDs, and stale-record cleanup. GitOrigin-RevId: 5ea579a7c3dc8bb6122ec3a02513836ccaacc41c