Codex CLI 0.166.0-alpha.5: memory v2 by default, mid-conversation reasoning changes, and thread forks
Codex CLI 0.166.0-alpha.5 is out as a pre-release: memory v2 becomes the default for fresh profiles, reasoning effort can change mid-conversation on supported models, and the app-server API gains experimental attached thread forks.
What happened
OpenAI posted Codex CLI 0.166.0-alpha.5 on its GitHub releases page, marked as a pre-release. New features in the notes: a built-in Google Cloud Vertex AI provider (configured with model_provider = "gcp"); GPT-6.1 Terra added to the model catalogs; a repository filter in the session picker and directory grouping in the agent command center; experimental attached thread forks in the app-server API; reasoning effort changes during a conversation enabled by default for supported models; and memory v2 enabled by default for fresh profiles, with support for importing external-agent memories into it. Bug fixes include fresh TUI sessions honoring the server's default approval reviewer, TUI preferences staying editable when execution settings are invalid, cancelled remote MCP tool requests when their local response futures are dropped, queued agent messages no longer restarting work after an interrupt or a switch to Plan mode, no more retries when a provider reports a model was not found, and a closed marketplace URL validation gap that could have let Git connect to a different host than the one checked.
Why it matters
This is a pre-release, not a stable release, so these changes are in testing ahead of a stable 0.166. The memory v2 default and mid-conversation reasoning-effort changes are the two that most affect everyday CLI use, while thread forks and the session-picker filter are aimed at people juggling many sessions and worktrees. Anyone on the stable channel should wait for the stable 0.166 release rather than switching to this alpha.
Sources: https://github.com/openai/codex/releases — Verified October 28, 2026.
Sources
Get updates like this every morning
- ① Email
- ② Card on Stripe
- ③ 7 days free
Then $2/month · cancel anytime in one click