usage

Codex 0.166.0

Tools and page contents
On this page

New 6

01

Keyboard Transcript Selection with Word, Line, and Page Motions and Integrated Search

When reviewing long debug logs in the terminal, frequently moving your hands away to grab the mouse and highlight text often breaks your train of thought. ⟦Think of looking up words in a thick dictionary using index tabs: in the past, you had to scan line by line with your eyes and mark text manually, whereas now a flick of the finger lets you skip across sections and pinpoint a vocabulary word directly.⟧ The transcript (historical question-and-answer exchanges kept in the terminal) now fully supports keyboard-only selection. You can use the keyboard to move the cursor by word, line, or page increments to precisely highlight the passages you want to copy. The interface features integrated search, so when you ask AI to inspect long logs and want to capture specific sections, typing keywords takes you straight to that line. All keybindings for motion and selection are also open to customization, making it easy to configure your personal shortcuts based on your habits.

Original changelog

Added keyboard-driven transcript selection with word, line, and page motions, integrated search, and configurable shortcuts. (#57221, #57222, #57223, #57224)

02

GPT-6.1 Terra Model Added with Support for Bundled and Two Major Cloud Catalogs

When planning project architectures and evaluating model performance, being able to invoke the latest architecture in your preferred cloud hosting environment is a critical consideration. ⟦Consider a retail chain stocking a new high-efficiency air conditioner: where buyers previously had to rely on a few specialized channels, both the official catalog and the shelves of major authorized partners now carry the model simultaneously.⟧ The Codex model catalog has now officially added the GPT-6.1 Terra model. In addition to the local bundled catalog, teams using hosting services such as Vertex AI on Google Cloud or Amazon Bedrock on AWS can also see it in their respective model listings. You can select GPT-6.1 Terra from any of these three catalogs.

Original changelog

Added GPT-6.1 Terra to the bundled, Vertex AI, and Amazon Bedrock model catalogs. (#57293)

03

Thread Resuming and Forking Preserve Approvals with Queue Resume and Child Thread Restoration

When resuming an interrupted session or branching into a new fork, conversation state and previously confirmed settings often need to be properly carried forward.

Running the codex queue --resume command now automatically wakes and resumes unloaded threads after queueing a new message.

When you resume existing progress or create a fork, previously acknowledged approvals and permission settings are preserved in full, eliminating the need to reauthorize permissions item by item in the branch.

The resume and fork process also retains cumulative counts for reasoning tokens (billable text units consumed during an AI thought process). This prevents the system from misjudging conversation length due to lost deliberation records, which previously triggered premature context compaction.

If a thread was previously archived, unarchiving that parent thread now restores all child threads spawned from it simultaneously. The past annoyances of repeatedly re-confirming permissions after branching or losing track of child threads upon unarchiving no longer occur.

Original changelog

Added codex queue --resume to resume unloaded threads after queueing a message. (#57232)

Preserved acknowledged approval and permission settings when resuming or forking threads. (#57227)

Restored spawned descendant threads when unarchiving their parent. (#57635)

Preserved reasoning-token accounting across resume and fork to avoid premature compaction. (#57839)

04

Clearer Safety-Block Explanations with Direct Selection of Safer Follow-Up Prompts

When entering certain prompts in the terminal unexpectedly triggers safety guardrails, a sudden conversation halt often leaves users bewildered. ⟦Picture the circulation desk of a rare book library: where a denied request once yielded only a blank rejection slip, the librarian now clearly explains the restricted regulations and proactively suggests alternative chapters available for loan.⟧ The TUI (terminal interface formatted with text-based menus) now provides clearer safety-block explanations. When your request is blocked due to safety policies, the screen clearly explains the specific reason for the restriction instead of merely returning a vague rejection line. The interface simultaneously generates several rephrased, safe follow-up prompts that you can select directly with your keyboard and resubmit. When exploring code defenses or sensitive testing scenarios, this lets you immediately recognize boundaries and swiftly adjust your questioning direction to continue working.

Original changelog

Added clearer safety-block explanations and selectable safer follow-up prompts in the TUI. (#57363, #57365)

05

Focused Network Option Added to Doctor Command for Rapid Diagnostics

When the terminal suddenly loses connection to the server or replies are cut off, quickly pinpointing whether the issue lies in the local environment or the network connection is critical. ⟦An audio engineer uses a dedicated cable tester: whereas troubleshooting noise previously required dismantling and inspecting the entire amplifier and mixing console, plugging in the leads now immediately tests signal continuity on its own.⟧ The diagnostic tool has now added the codex doctor --network-only option. This command runs diagnostics exclusively on configuration, connectivity, and WebSocket (a networking protocol for bidirectional real-time communication) status. When encountering request timeouts in corporate intranets or proxy environments, you simply run:

```bash codex doctor --network-only ```

The terminal then reports only the configuration, connectivity, and WebSocket checks.

Original changelog

Added codex doctor --network-only for focused configuration, connectivity, and WebSocket diagnostics. (#57606)

06

Standalone Executor Shipped in Official Packages Alongside Service and Build Improvements

When deploying and upgrading tools in build environments, the packaging integrity and resource release of underlying architectures directly dictate execution stability. Canonical CLI and app-server (application background server) release packages now bundle the standalone executor directly. The background service fixes thread startup and shutdown races, promptly releasing occupied resources upon completion. Meanwhile, standalone release cleanup errors on macOS when installations are in use or paths contain non-ASCII characters such as Chinese have also been resolved. For project builds, Bazel switches to source-built V8 with target-matched Rust bindings and native Windows MSVC archive support. Development and release builds are also standardized across the board on Node.js 24.22.1 and Rust 1.95.0. Past issues where cleanups failed on specific paths or background processes left lingering resources are now eliminated.

Original changelog

Fixed standalone release cleanup on macOS when installations are in use or paths contain non-ASCII characters. (#57503)

Fixed app-server thread startup and shutdown races and released completed runtimes promptly. (#57787, #57788)

Switched Bazel to source-built V8 with target-matched Rust bindings and native Windows MSVC archive support. (#57164, #57269, #57644, #57832)

Shipped the standalone executor in canonical CLI and app-server release packages. (#57837)

Standardized development and release builds on Node.js 24.22.1 and Rust 1.95.0. (#57168, #57373)

Fixed 1

07

Terminal Interface Fixes Rendering and Offline Exit While Preserving Image Attachments

When interacting intensively with AI in the terminal, garbled text formatting or sudden disconnections often disrupt the operational flow. Markdown (a lightweight markup syntax that formats text into headings or bold text) across asynchronous questions, choice lists, answers, and transcript replies is now consistently rendered. When restoring cleared composer text, original local image attachments are also preserved. The terminal interface also improves reconnection recovery, properly handling /quit or /exit even when offline.

Original changelog

Rendered Markdown consistently in async questions, choices, answers, and transcript replies. (#57259, #57292)

Preserved local image attachments when restoring killed composer text. (#57502)

Improved TUI reconnection recovery, including offline /quit and /exit handling. (#57820)