Codexv0.166.0
Codex CLI not connecting? On 0.166.0, run codex doctor --network-only, and select transcript text from the keyboard
Codex CLI 0.166.0 shipped on Oct 29 as a stable release. Two changes help day to day: a focused network check, codex doctor --network-only, and a keyboard way to select and search the transcript. The release also stops resumed or forked threads from compacting too early and adds GPT-6.1 Terra to the
What changed
OpenAI published Codex CLI rust-v0.166.0 on GitHub on Oct 29 (around 12:48 PM PT). The release notes list:
- A new codex doctor --network-only command that checks only your configuration, connectivity, and WebSocket connection (#57606).
- Keyboard-driven transcript selection with word, line, and page motions, built-in search, and configurable shortcuts (#57221 to #57224).
- codex queue --resume, which resumes unloaded threads after you queue a message (#57232).
- Clearer explanations when a safety check blocks an action, with safer follow-up prompts you can pick (#57363, #57365).
- GPT-6.1 Terra added to the bundled, Vertex AI, and Amazon Bedrock model catalogs (#57293).
- Fixes: resumed and forked threads keep their reasoning-token count, so they no longer compact too early (#57839), and approval and permission settings you already accepted carry over when you resume or fork (#57227).
Who is affected
Anyone using the Codex CLI in a terminal. The network check matters most if you see stalled turns, reconnect loops, or WebSocket errors, especially behind a corporate proxy or VPN. The resume and fork fixes matter if you often pick up old threads and saw them compact sooner than expected. The Terra catalog change matters only if you run Codex through Vertex AI or Amazon Bedrock.
What to do now
- Update the CLI (for example npm install -g @openai/codex@latest, or through the package manager you installed it with) and confirm with codex --version.
- When Codex can't reach the server, run codex doctor --network-only first. It skips unrelated checks, so the output points at the network, proxy, or WebSocket problem faster.
- Try the new transcript selection to copy a command or error message without reaching for the mouse. Shortcuts are configurable if they clash with your terminal.
- If you resume or fork long threads, watch whether compaction now happens later than before.
What is not confirmed
The release notes do not list the exact default key bindings for transcript selection or say exactly what codex doctor --network-only prints, so check the in-app help after updating. We haven't tested whether the compaction fix changes how much of your usage limit a resumed thread uses.
Sources
- Officialopenai/codex rust-v0.166.0 (GitHub) · Oct 29, 2026
- Report@CodexUpdate post on Codex CLI 0.166.0
Get updates like this every morning
- ① Email
- ② Card on Stripe
- ③ 7 days free
Then $2/month · cancel anytime in one click