Skip to content

OpenAI Codex CLI rust-v0.166.0

Released · OpenAI

BreakingSecurity fix

Models:Adds GPT-6.1 Terra

What the release notes say

New Features

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

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

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

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

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

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

Bug Fixes

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

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

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

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

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

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

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

Chores

  • 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)

Changelog

Full Changelog: https://github.com/openai/codex/compare/rust-v0.165.0...rust-v0.166.0

  • #56468 Preserve SystemRoot for Windows filesystem sandbox helpers @jif-oai

  • #56477 Move Guardian approval reason caps into context composition @ioanbudea-OAI

  • #56483 Allow installed plugin metadata to skip display enrichment @bkotsopoulos

  • #56493 Move Guardian tool description preparation into context composition @ioanbudea-OAI

  • #56494 Add channel upserts to message boards @felixxia-oai

  • #56495 Add paginated channel subscription queries to the local message board @felixxia-oai

  • #56505 Defer synchronous Guardian tool-call truncation to preparation @ioanbudea-OAI

  • #56514 Preserve tracing context throughout tool dispatch @bkotsopoulos

  • #56515 Add trace instrumentation for turn startup and response streaming @bkotsopoulos

  • #56516 Respect server approval policy defaults during TUI startup @etraut-openai

  • #56524 Add turn, tool, and skill attribution to traces @bkotsopoulos

  • #56525 Remove the 1 MiB response limit for explicit model catalogs @eternal-openai

  • #56530 Record skill and plugin catalog sizes on publication @TAFOYA-OAI

  • #56533 Defer sync Guardian tool-output truncation to transcript preparation @ioanbudea-OAI

  • #56535 Extract the head-tail buffer into a utility crate @seanh-oai

  • #56543 Track resume picker pagination and selection metadata per backend @bc-openai

  • #56552 Initialize SQLite databases with DELETE journaling on NFS @dkovalenko-oai

  • #56553 Include environment hooks in thread hook listings @andrewgu-oai

  • #56554 Enable masked AWS credentials for local proxy signing @viyatb-oai

  • #56555 Apply sync Guardian message limits during transcript preparation @ioanbudea-OAI

  • #56556 Use conversations for all Guardian v2 async classification @felixxia-oai

  • #56557 Exercise retained sampling in Guardian transport tests @felixxia-oai

  • #56559 Remove Guardian snapshot-specific context helpers @felixxia-oai

  • #56560 Allow configuring GCP project and location in provider settings @alexsong-oai

  • #57164 Move the V8 Bazel build graph into Codex @seanh-oai

  • #57165 Enforce V8 artifact profiles at Bazel target boundaries @seanh-oai

  • #57166 Surface automatic marketplace update failures as startup warnings @dkovalenko-oai

  • #57167 Track CUA tool call starts and deduplicate lifecycle events @trpcic-openai

  • #57168 Centralize Node.js version selection on 24.22.1 @anp-oai

  • #57169 Clarify config loader APIs and share interactive login setup @smurching-oai

  • #57170 Update prebuilt argument-comment-lint to rust-v0.164.0 @tamird

  • #57171 Integrate runtime authentication into model requests @cooper-oai

  • #57172 Expose lifecycle timestamps on app-server thread items @charliemarsh-oai

  • #57174 Add scoped request-body secret substitution to MITM hooks @viyatb-oai

  • #57175 Integrate config-server policies with startup and authentication @smurching-oai

  • #57176 Defer Guardian Node REPL output truncation until prompt preparation @ioanbudea-OAI

  • #57178 Route FedRAMP API keys to government endpoints by default @lsingh-oai

  • #57179 Consolidate async header authentication in apply_auth_headers @cooper-oai

  • #57180 Add constraint-aware standalone network proxy configuration @viyatb-oai

  • #57181 Add optional names to untrusted additional context @akira-oai

  • #57185 Centralize unified exec output rendering @anp-oai

  • #57186 Fail closed on unreadable glob search root metadata errors @viyatb-oai

  • #57187 Allow advisory rollout budgets with optional limit enforcement @nvogt-oai

  • #57188 Add a credential file override for GCP provider authentication @alexsong-oai

  • #57191 Read unified exec output directly from stdout and stderr @anp-oai

  • #57192 Gate capability discovery V2 on executor version @TAFOYA-OAI

  • #57193 Preserve failed write_stdin calls in rollout trace replay @cassirer-openai

  • #57194 Classify rollout tool calls by their runtime handler @cassirer-openai

  • #57196 Isolate MCP inputs and timeouts for callers sharing a connection @charliemarsh-oai

  • #57197 Clarify skill toggle summaries in the TUI @fcoury-oai

  • #57198 Report the local command working directory in PreToolUse hooks @eternal-openai