New release
Codex CLI 0.166.0 adds a network check to codex doctor
Codex CLI 0.166.0 adds codex doctor --network-only to check settings and connections, and keeps your approval settings when you resume a thread.
- Date
- Works with
- Codex CLI
What’s new
Codex CLI 0.166.0 came out on 29 October 2026. It adds codex doctor --network-only "for focused configuration, connectivity, and WebSocket diagnostics". Codex doctor is the command that writes a report when your Codex installation does not work.
The release also adds keyboard selection of text in the conversation, with search, and codex queue --resume, which resumes a thread after you queue a message for it. Codex now explains more clearly why a safety check blocked a request and offers safer follow-up prompts. A fix keeps the approval and permission settings you accepted when you resume or fork a thread.
Why it matters
When Codex cannot connect, for example on a company network with a proxy, the new option checks only your settings, the connection to your model provider and the WebSocket connection. It skips other checks, such as the database and MCP scans. The pull request says that if your settings have an error, it reports the error and stops before it contacts any server. After you resume a thread, you no longer have to accept the same approvals again.
How to try it
Run this command: see the command below. This installs 0.166.0 or later. If you installed Codex another way, use the update command for that method. Then run codex doctor --network-only.
npm install -g @openai/codex@latestRelated
Source
Checked against the source on 31 Oct 2026