codex app-server daemon version should show a better output when daemon is not running
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
Research direction
The daemon version subcommand of the codex CLI is the entry point; find where it connects to the control socket and where the os error from that connection is turned into the printed error. Check what the command currently returns on failure, then make it emit the JSON shape from the issue with status unreachable, the socket path and original error kept, and a hint to run daemon start. Done when the failure case prints that JSON and a test covers the refused-connection path.
Written by the indexing model from the issue text.
Description
What happened
Running codex app-server daemon version gives this:
Error: failed to connect to C:\Users\<user>\.codex\app-server-control\app-server-control.sock
Caused by:
No connection could be made because the target machine actively refused it. (os error 10061)
The error shows a socket failure, but doesn't explain what it means or what to do next.
Environment
- Windows, PowerShell
codex-cli 0.162.0- Installed through Scoop
What I checked
- The control socket file still exists.
- No managed daemon process was found.
- Codex desktop is running its own separate app-server process.
- Running the command again gives the same error.
The daemon's exact stop reason is unknown.
Expected output
Can we have a better output here? Show the CLI version, explain that the daemon could not be reached, and suggest the next command.
Since daemon version is documented to return JSON, something like:
{
"cliVersion": "0.162.0",
"appServerVersion": null,
"status": "unreachable",
"reason": "Control socket connection refused (os error 10061)",
"hint": "The daemon may not be running. Try: codex app-server daemon start"
}
Keep the socket path and original error available for troubleshooting. Only report not running if the process state has been checked.
Related
#47495 also asks for missing daemon start guidance, but this report is specifically about the output from daemon version.
- Dominant language
- Rust
- Stars
- 128k
- Forks
- 20.1k
- Avg merge
- 1m
- Merged PRs (30d)
- 994
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
bug tool-calls
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
bug CLI TUI
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
openai/codex#53227 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement extension
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
documentation mcp
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
swc-project/swc#12516 ·
Maintainers usually reply within 1 day
-
mls-rs-crypto-awslc: exact aws-lc-rs =1.16.3 pin blocks rustls security updatePossibly taken @muscariello claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
[work-item] adam-adae-worsening-emergence: conform spec.yaml to the specification style contract (REQ-1280)Possibly taken @muse-yamaa-bot claimed this today. Openwork-item
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Possible memory leak: message iterators from pactffi_pact_handle_get_*message_iter are never deletedOpen
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
pact-foundation/pact-go#652 ·
Maintainers usually reply within 1 day