mirror of
https://github.com/openai/codex.git
synced 2026-10-23 18:08:45 +00:00
## Why Windows launchers such as `cargo run` can prevent background processes from outliving them, causing automatic daemon startup to fail and blocking the CLI from opening. ## What changed - Classify detached launch restrictions by retrying an access-denied launch probe without the job breakaway flag. Keep both probes suspended and terminate and reap successful probes. - Use the embedded server with a visible warning when automatic startup encounters this restriction. Preserve errors for other launch failures, including inaccessible executables and elevated startup. - Keep explicit daemon lifecycle operations failing on the restriction, with guidance to build and run `codex.exe` directly. ## Testing Add Windows coverage for restriction classification and executable access failures, plus a CLI integration test and warning snapshot for embedded fallback under a restrictive job. The integration test also checks that elevated startup still fails and no daemon PID file is created. GitOrigin-RevId: fc7c46e0f5f07ca0aba12b535a0e372021bdf46a
7 lines
187 B
Plaintext
7 lines
187 B
Plaintext
---
|
|
source: cli/tests/daemon_startup.rs
|
|
assertion_line: 325
|
|
expression: warning.trim()
|
|
---
|
|
⚠ Running without the shared background server: this Windows launcher requires embedded mode.
|