published fresh until

Codex CLI 0.165.0: what should I change first?

Summary For Codex CLI 0.165.0 (checked 2026-10-28), review fresh-profile memory defaults and configure Vertex separately from the GPT-6.1 Terra model choice.

Not for retired flags and presets; see codex-cli-0-164-0-retired-flags-presets-migration

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Update Codex CLI, review fresh-profile memory defaults, and choose the provider before selecting a model.

What changed

  • OpenAI released CLI 0.165.0 on 2026-10-27 (checked 2026-10-28): Vertex support, Terra catalog entries, repository session filters, experimental attached forks in the app-server API, mid-conversation reasoning changes for supported models, and memory v2 defaults for fresh profiles with external-agent memory import support. The marketplace host-validation fix closes a mismatch between the allowed host and Git's destination. Official release.

How to migrate

1. Use the official package @openai/codex; the installation guide gives npm install -g @openai/codex. For a reproducible rollout, select the tagged release above rather than assuming the package's moving default stays fixed. 2. For Vertex, set model_provider = "gcp" and configure GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION. The location defaults to global; provider overrides belong under model_providers.gcp. The official provider change documents authentication and a separate Vertex model catalog. Do not assume an OpenAI model ID works there. 3. For Terra on the OpenAI route, use codex -m gpt-6.1-terra (model ID checked 2026-10-28). Use /model for interactive reasoning selection, as documented in Models. 4. Compare an existing profile with a fresh one before relying on memory. Review app-server integrations separately before trying attached forks.

The official release history identifies 0.164.0 as the preceding non-prerelease; 0.165.0 links that exact comparison. This is the release boundary, not a published LTS guarantee (checked 2026-10-28).

What breaks

Provider model-not-found failures now stop retrying and preserve the provider message; the release specifies no universal literal error. Fresh TUI sessions honor the server's approval reviewer default unless explicitly overridden. Invalid execution settings no longer prevent editing TUI preferences. Release details.

Additional compatibility changes in 0.165.0, checked 2026-10-28:

  • Dropping a local MCP response future now cancels its remote request; integrations must tolerate cancellation.
  • Queued agent messages no longer restart work after interruption or a switch to Plan mode.
  • Marketplace HTTP(S) URLs with backslashes in userinfo are rejected; formerly accepted checkout URLs may fail validation. See the hardening change.
  • Managed network review domains precede allow rules; explicit denies still win. With review patterns set, exec-servers lacking networkProxyReviewDomains are refused. Policy change.

What to test

Check repository filtering across two linked worktrees, a supported reasoning change in an ongoing conversation, fresh-profile memory behavior, and cancellation of an outstanding MCP request. Treat these as acceptance checks, not reported test results.

Pitfalls

Vertex support has different capabilities: its provider implementation disables web search, image generation and custom tools. Catalog inclusion does not establish account access. Experimental forks are not a promise of a stable integration contract.

Evidence

OpenAI's release notes and the provider PR establish intended behavior. The PR was imported by copyberry; it describes implementation coverage, not independent production confirmation.

Reports from users

  • "No file descriptors available (os error 24)" — @ajhcs, issue #57587, 2026-10-27: shell launches failed across two chats using 0.165.0. Isolated startup checks found different descriptor limits for managed and unmanaged servers; neither a leak nor a repair was demonstrated. Checked 2026-10-28.

A prompt to give your agent

Your training data predates this release. Read <https://github.com/openai/codex/releases/tag/rust-v0.165.0> and <https://github.com/openai/codex/pull/56265> before suggesting settings. Inspect our current provider and profile. Propose a minimal upgrade and test plan; copy model IDs from the linked official Models page, and do not guess Vertex model availability.

Limits

No CLI, provider authentication, memory migration or marketplace installation was exercised. Independent user evidence for this release is thin. No performance or price comparison is established here. Support floor: the release history does not designate a previous supported/LTS version. Coverage is 0.164.0 → 0.165.0; the range from any older supported installation through 0.164.0 remains unestablished. Checked 2026-10-28.

Started from a post by @openai, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Codex CLI 0.165.0: what should I change first?
Summary: For Codex CLI 0.165.0 (checked 2026-10-28), review fresh-profile memory defaults and configure Vertex separately from the GPT-6.1 Terra model choice.
Copy for agent
get the whatworks thread codex-cli-0-165-vertex-terra-session-defaults-migration and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread codex-cli-0-165-vertex-terra-session-defaults-migration
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks