Codex 0.165.0
Highlights in this release
New 7
Built-in Google Cloud Vertex AI Provider and Support for GPT-6.1 Terra
If you are used to deploying services on Google Cloud, you can now call models directly through Vertex AI without writing complex adapter plugins yourself.
Simply add the following to your configuration file:
```toml model_provider = "gcp" ```
This directly switches to the built-in Google Cloud Vertex AI provider. At the same time, the official model catalog now includes the newly released GPT-6.1 Terra, giving you more computing options when choosing models.
Picture renting a commercial fleet from a car rental chain. In the past, driving a specific brand required finding and contracting with outside agencies on your own. Now the company directly adds them to its partner roster and puts the latest flagship sedan in the lineup for you to choose from.
When building internal enterprise applications and consolidating AI compute under existing Google Cloud projects and billing, you only need to specify gcp in the configuration file to connect to Vertex AI resources immediately. When you need to test the latest model capabilities, you can also select GPT-6.1 Terra directly from the catalog.
Original changelog
Added a built-in Google Cloud Vertex AI provider, configured with model_provider = "gcp". (#56265)
Added GPT-6.1 Terra to the model catalogs. (#57337)
Session Picker Supports Repository Filtering, Agent Command Center Groups by Directory
When juggling work across multiple project copies, locating a recently opened conversation in a long session list often takes considerable effort.
When multitasking with Git worktrees (a feature allowing multiple copies of the same project in parallel), the session picker now includes a repository filter, allowing you to quickly filter out sessions belonging to a specific project.
Imagine a large archive reorganizing its checkout slips. Previously, slips from all projects were stuffed into a single drawer, forcing you to check records one by one. Now you can pull out a dedicated card box by project name, and the desk organizes them into tiers by physical folder.
The agent command center now also supports directory grouping, bringing together all records associated with the same worktree directory to keep session navigation across copies neat and orderly. When you are fixing an issue in the main project while testing a new feature in a copy, you can simply open the picker and type the project name to switch back to the target conversation without distraction from other projects' sessions.
Original changelog
Added a repository filter to the session picker and directory grouping to the agent command center, making it easier to navigate sessions across linked worktrees. (#56308)
App-Server API Supports Experimental Attached Thread Forks
If you are developing custom tools through the app-server interface and want to try different solutions within the same conversational context, managing separate branches can often be cumbersome.
The app-server API now includes experimental attached thread forks (a mechanism for branching secondary sub-threads from an existing conversation). This feature allows applications to branch directly off an existing conversation, preserving the full context accumulated in the main thread while preventing experiments from cluttering original records.
Think of attaching extension tabs to a loose-leaf notebook. Previously, trying a second draft meant rewriting the entire notebook from scratch. Now you insert an attached memo directly into key pages, preserving the original context while letting you swap out bad drafts at any time.
When you need users to evaluate multiple revision options for the same issue, you can use this interface to spin off secondary threads for exploration while keeping the primary conversation completely clean.
Original changelog
Added experimental attached thread forks to the app-server API. (#56351)
Support for Adjusting Reasoning Effort Mid-Conversation, Enabled by Default
When asking an AI questions, starting with casual chat and then suddenly running into a complex architecture that demands deep dissection often leaves you constrained by your initial thinking depth.
For supported models, changing reasoning effort (the parameter determining how much reasoning computation the model invests before answering) during a conversation is now enabled by default. You no longer need to interrupt the conversation and start a new session just to make the AI think more deeply; you can flexibly adjust the amount of thinking midway based on question complexity.
A chess clock adjustment reflects this transition. Previously, choosing blitz at the opening meant rushing through the entire match. Now, when a stalemate strikes, you can claim a few extra minutes on the spot to think deeply, then switch back to your normal pace once the puzzle is solved without resetting the board.
When you initially ask it to interpret a routine log and suddenly decide to explore the root cause of a distributed lock deadlock midway through, you can increase the effort on the spot to let the model perform deep reasoning on the core logic.
Original changelog
Enabled reasoning effort changes during a conversation by default for supported models. (#56163)
Fresh Profiles Enable Memory v2 by Default with Support for Importing External-Agent Memories
Whenever you create a new profile, having the AI remember your preferences or transfer habits from other tools usually requires considerable manual setup.
When creating fresh profiles, the tool now enables memory v2 (a mechanism allowing the tool to preserve user preferences across conversations) by default. This architecture also supports importing external-agent memories, directly reading preferences and operational logs accumulated in other AI tools.
Consider moving into a newly renovated smart home. Previously, each move meant retraining a butler to learn your daily routine. Now, a ready-made smart butler is on standby the moment you enter, capable of reading through your previous butler's entire memo notebook.
When switching from another coding assistant to Codex, you do not need to reteach your formatting style and preferred syntax from scratch; simply import your existing memory files, and the fresh profile will immediately work according to your established habits.
Original changelog
Enabled memory v2 by default for fresh profiles and added support for importing external-agent memories into it. (#56211, #56414)
Promptly Stop Background Tasks on Interrupt and Cancellation, Stop Blind Retries for Missing Models
When you press stop during an operation or encounter an invalid request, background processes that continue idling or repeatedly retrying waste computing resources and waiting time.
An office building's dispatch cancellation mechanism works in much the same way. Previously, contractors continued rushing work after a project was halted, and misaddressed documents were repeatedly redelivered. Now, once the front desk issues a cancellation notice, all dispatched tasks and invalid deliveries brake immediately.
The first change applies to remote MCP tools (protocols that connect AI to external tools). If the local side has cancelled or no longer waits for returned results, it actively sends a cancellation notice to the remote side, preventing remote servers from wasting compute.
The second adjustment targets the agent message queuing mechanism. When you press a key to interrupt execution during a conversation or switch to Plan mode, queued messages will no longer restart work without permission.
The third change stops retrying immediately when a model provider reports that a specified model was not found, fully preserving the original error message.
Previously, when operations were interrupted or settings failed, background processes might continuously retry or wake tasks back up; now invalid requests cease promptly.
Original changelog
Cancelled remote MCP tool requests when their local response futures are dropped. (#56132)
Prevented queued agent messages from restarting work after an interrupt or a switch to Plan mode. (#56330)
Stopped retrying when a provider reports that a model was not found, preserving its error message. (#56445)
Marketplace URL Validation Strengthened to Prevent Git Connecting to Unauthorized Hosts
When downloading plugins or packages from an extension marketplace, whether a tool strictly verifies download sources is vital to the security of your entire development environment.
The marketplace URL validation mechanism has now closed a security gap. In the past, discrepancies during URL matching could cause Git to ultimately connect to a different host from the one permitted on the safe list. This validation gap has been closed, ensuring Git will no longer connect to a host different from the one checked against the allowlist.
Checking visitor logs at a gated community entrance reflects this safeguard. Previously, the address recorded by a guard might not match where a visitor actually went; now this mismatch loophole has been firmly closed.
This issue has been fixed, so installing marketplace packages will no longer inadvertently connect to unauthorized external hosts due to URL discrepancies.
Original changelog
Closed a marketplace URL validation gap that could allow Git to connect to a different host than the one checked against allowed patterns. (#56263)
Fixed 1
TUI Preferences Remain Editable on Invalid Settings, Fresh Sessions Honor Default Reviewer
When operating tools in a terminal interface, if execution parameters are entered incorrectly and the preference menu freezes as a result, you are often left stuck.
For the terminal user interface (a text-based terminal display), preferences now remain editable and take effect immediately even when invalid parameters exist in execution settings. Fresh terminal sessions also properly honor the server's default approval reviewer rules when no explicit override is provided.
The settings menu on a car dashboard mirrors this behavior. In the past, whenever a sensor reported an abnormal reading, the entire console froze and prevented adjustments. Now control options remain fully editable with immediate effect, and newly started vehicles actively follow default safety assignments set by the fleet.
Whether you accidentally enter an invalid path or just launched a brand new terminal conversation, the interface will no longer freeze without cause, and approval permissions continue to function normally.
Original changelog
Fixed fresh TUI sessions to honor the server’s default approval reviewer when no explicit override is provided. (#56090)
Kept TUI preferences editable and immediately applicable when execution settings are invalid. (#56091)