Codex CLI 0.158.0 asks before typing into commands with extra permissions, and drops GPT-5.4
1 month ago
Codex CLI 0.158.0, released September 28, 2026: Codex now asks before the agent types into a command running with extra permissions, GPT-5.4 leaves the model list with a prompt to move to GPT-6 Sol, and MCP servers that need an OAuth client secret can sign in. Plus sandbox fixes on Windows, Linux and macOS. https://github.com/openai/codex/releases/tag/rust-v0.158.0 https://github.com/openai/codex/pull/47799 https://github.com/openai/codex/pull/47932 https://github.com/openai/codex/pull/47891
Ask about this presentation
Chapters
0:00Codex CLI 0.158.0 is out
0:17Codex asks before typing into commands with extra permissions
0:41GPT-5.4 leaves the model list
1:01MCP servers that need a client secret now connect
1:23Smaller changes you'll notice
1:45Fixes and who should update
1:47Sandbox fixes on Windows, Linux and macOS
2:15Who should update
2:29Where the release notes are
Show transcriptHide transcript
OpenAI shipped Codex CLI version 0.158 on September 28th. It's the open source coding agent that runs in your terminal. The biggest changes are about what the agent can do without asking you, and which models it offers.
First, a new approval. The agent can start a command and then type into it, to answer a prompt, for example. If that command is running with more permissions than the sandbox normally allows, Codex now asks you before the agent sends it anything. This was an experimental setting, and it's now on for everyone. A follow up fix means permissions Codex grants its own plugins no longer set off the prompt.
Second, GPT-5.4 is gone from the models Codex ships with, on OpenAI and on Amazon Bedrock. If you'd picked it and saved that choice, Codex doesn't break. It asks whether to move you to GPT-6 Sol, OpenAI's new model for balancing capability and cost, and keeps your provider as it was.
Third, a fix for company tools. Some MCP servers only accept sign in from an app that was registered ahead of time, with an ID and a secret. Codex could hold the ID but not the secret, so those servers wouldn't connect. Now you can give it both, and Codex keeps the secret out of its debug output, out of the sign in link, and out of the tokens it saves.
A few smaller things. In the fullscreen view you can now copy by selecting and paste with a right click, and a copied answer keeps its Markdown formatting. Image generation can ask for a transparent background, and edits can start from an image file in the conversation. And Codex now supports the new Pro Max plan, and shows it by name in its account screens.
Then the fixes.
Most of the fixes are in the sandbox that keeps the agent's commands contained. On Windows, it stopped failing on ordinary Windows 10 paths, on saved credentials the system had rejected, and on large permission policies. On Linux, it now starts when writable folders sit inside each other, and on Linux and macOS your Git folders stay protected across them. And on macOS, paths that are just aliases of system folders no longer trigger extra approval prompts.
So who should update first? Windows users whose sandbox has been failing. Teams whose MCP servers need a client secret. And anyone with GPT-5.4 saved as their model, since it's no longer on the list.
One limit: the new approval only covers commands running with extra permissions. Everything inside the normal sandbox behaves as before. The full list of changes is in the release notes on the Codex GitHub page. That's Codex CLI 0.158: it asks before typing into commands with extra permissions, and drops GPT-5.4.
Up next
3:19Codex CLI v0.169.0 keeps side chats in tabs and saves them across restarts
@codex-cli
1 day ago
3:07Codex CLI now runs a side chat next to your main one, and takes recordings
@codex-cli
1 day ago
3:04Codex CLI v0.167.0 runs the agent command center without a daemon and marks unread results
@codex-cli
1 week ago
3:29Codex CLI runs on Google Cloud Vertex AI and adds GPT-6.1 Terra
@codex-cli
1 week ago
3:08Codex CLI now lets you steer a reply while it is still answering
@codex-cli
1 month ago
2:51Codex CLI v0.162.0 adds managed Git worktrees
@codex-cli
1 month ago
3:02Codex CLI v0.160.0 starts sessions outside a project
@codex-cli
1 month ago
1:19Codex CLI makes GPT-6.1 Sol its default model
@codex-cli
1 month ago
2:49Codex CLI v0.159.0 lets you steer Codex mid-answer
@codex-cli
1 month ago