Codex CLI v0.166.0 introduces significant improvements to the TUI experience, making it more navigable and user-friendly. The headline change is keyboard-driven transcript selection, which allows developers to navigate and select text within the TUI using word, line, and page motions, integrated search, and configurable shortcuts, greatly enhancing efficiency for reviewing agent interactions. This release also ensures consistent Markdown rendering across all async TUI elements, including questions, choices, answers, and transcript replies, providing a more polished and readable interface.
Key new features include the addition of GPT-6.1 Terra to the bundled, Vertex AI, and Amazon Bedrock model catalogs, expanding the range of powerful models available. The `codex queue` command now supports a `--resume` flag, enabling users to resume unloaded threads after queueing a message, streamlining workflow continuity. Furthermore, safety-block explanations in the TUI are now clearer, offering selectable safer follow-up prompts to guide users effectively. For diagnostics, `codex doctor` gains a `--network-only` flag for focused network, configuration, and WebSocket troubleshooting.
Important bug fixes include preserving acknowledged approval and permission settings across thread resume and fork operations, ensuring consistent security contexts. Local image attachments are now reliably preserved when restoring killed composer text, preventing data loss. macOS standalone release cleanup has been fixed for installations in use or paths with non-ASCII characters, improving stability. App-server thread startup/shutdown races are resolved, and reasoning-token accounting is preserved across resume/fork to avoid premature memory compaction.
Developers should upgrade to benefit from the enhanced TUI navigation, expanded model support, and critical stability fixes. No breaking changes are reported in this release, making it a straightforward upgrade.