Part of the series Agent Harness Updates · Part 6 of 6
Codex CLI 0.174 tested: exec stops forcing approvals to never, read-only threads stay read-only across resumes, and the Linux sandbox handles symlink aliases
The short answer: Codex CLI 0.174.0 (released 2026-12-04, Beijing time) changes three permission behaviors that matter.[1] First, codex exec no longer quietly switches the approval policy to never. When the config leaves approval_policy unset or sets on-request, 0.172 forces never inside exec. 0.174 follows the config, prints a WARNING on stderr, and rejects escalation requests on the spot. exec resume now keeps the policy and reviewer saved on the thread. Second, a read-only thread no longer turns writable after repeated cold resumes. I reproduced that hole on both 0.172 and 0.173. Third, the Linux sandbox no longer lets a writable grant cover deny and read-only mounts when that grant is a symlink to an ancestor directory. On top of that, the TUI now asks OpenAI models for summary: "auto" reasoning summaries in new chats, and /config lets you switch to Concise, Detailed, or None.
Should you upgrade? If you run codex exec from scripts or CI, or you give agents read-only and deny rules, yes. Read the first row of the table before you do.
| Your situation | What to do |
|---|---|
| You want to upgrade | npm i -g @openai/[email protected]. codex --version should print codex-cli 0.174.0 |
CI or scripts run codex exec and the config has no approval_policy | To keep the 0.172 behavior, set approval_policy = "never" in the config or on the command line. To have escalations reviewed, set approvals_reviewer = "auto_review" |
You continue long tasks with codex exec resume | The policy and reviewer from the first run travel with the thread. To change them, pass -c approval_policy=… on resume. The new value is saved on the thread |
You run read-only jobs with -s read-only and your default is a custom [permissions.*] profile | Upgrade. On 0.172 and 0.173 the thread turns writable after the second cold resume, and commands really write into the project |
| On Linux you put symlinked paths in writable grants | Upgrade. When an alias points at an ancestor and its path sorts after the other grants, 0.172 and 0.173 lose the deny and read-only rules |
| You use OpenAI models in the TUI and don’t want reasoning summaries | Pick None under /config → Sessions → Reasoning summary, or set model_reasoning_summary = "none". It applies to new chats only |
| You run your own Responses-compatible gateway | 0.174 sends two new headers, x-codex-exclude and x-codex-exclude-stream-fields. A gateway that doesn’t know them can ignore them |
You want to try codex --cloud | You need a ChatGPT sign-in. With only an API key it exits with an error |
What changed in 0.173 and 0.174
0.173.0 shipped on 2026-12-02 and 0.174.0 two days later. The last stable release in this series’ log was 0.172.0, so this report covers both.[1][2] These are the changes that affect harness behavior:
- exec approvals (#63515). New threads use the configured approval settings. Resumed and forked threads inherit the source thread’s approval policy and reviewer, each on its own. When a human reviewer is required, exec warns on stderr and rejects interactive approval requests outright.
- Read-only resume (#64829). A read-only thread stays read-only across repeated cold resumes.
- Symlink aliases (#64415, #64416). The Linux and Windows sandboxes enforce filesystem restrictions when the same directory is reachable through a symlink or junction.
- Reasoning summaries (#62903, #62904, #62905). The TUI sends
autofor OpenAI providers by default, and the Sessions page of/confighas a new picker. Concurrent reasoning summaries are marked stable and on by default. - Request headers (#62863, #63461). Codex asks the Responses API not to echo the tool catalog, and not to send reasoning ciphertext early in the stream.
- Cloud and TUI.
codex --cloudandcodex resume --cloudare new, with--env <ENV_ID>to pick an environment. The Agent Command Center lists local and Cloud tasks together./statusis now a tabbed report that shows the permissions confirmed for the active chat. - Other. Remote plugin installs verify the archive’s digest and signature first (#63487, #63489). Custom HTTPS gateways can fill the model picker from
/models(#63807). Spawned subagents get their own opt-in for async messages (#63069). In 0.173, MCP connections are shared by default andPreToolUsehooks acceptonFailure: block.

codex exec now follows your approval config
Start with what 0.172 did. codex exec is non-interactive, so nobody can click “approve”. When you were the reviewer, it forced the policy to never. PR #63515 says exec “could force the approval policy to never”, overriding the config on new threads and the saved policy on resumed ones.[3] I ran all three versions with a config that has no approval_policy. The startup banner on 0.172 and 0.173 reads approval: never. On 0.174 it reads approval: on-request. An explicit approval_policy = "on-request" in the config changes nothing: 0.172 still shows never. 0.172 does what you asked in only two cases: a command-line -c approval_policy=…, or approvals_reviewer = "auto_review".
The 0.172 behavior has a reason behind it. A real approval prompt in non-interactive mode would wait forever, and never at least lets the job finish. The problem is that the switch happened silently. The config says on-request, the banner says never, and nothing in the log explains why. Whoever debugs it will assume their config didn’t load. 0.174 respects the config and states the consequence openly: the WARNING goes to stderr and the rejected request goes into the session history. I prefer that. The rules match the behavior, and when something goes wrong you can see it.
The difference changes the rules the model sees. In 0.172 the permissions text sent to the model contains “Approval policy is currently never. Do not provide the sandbox_permissions for any reason, commands will be rejected.” The whole section is 499 bytes. 0.174 replaces it with an “Escalation Requests” section that teaches the model how to ask for out-of-sandbox runs with sandbox_permissions and prefix_rule. That section is 4,132 bytes. For the same prompt, the first request body grows from 38,979 to 42,612 bytes, and all 3,633 extra bytes are in this section.
So the same CI job behaves differently after the upgrade. Under 0.172 the model knows it can’t escalate and works inside the sandbox. Under 0.174 the model is told it may ask. When it does ask, exec has nobody to approve, the request is rejected immediately, and that tool call is wasted. The screenshot below asks the model to touch a file outside the workspace. Neither version runs it, but the rejection happens in different places. 0.172 refuses at the policy layer. In 0.174 the approval request fails.

The 0.174 WARNING is clear about the options: run the turn in the TUI, switch the reviewer to auto_review on resume, or set the policy to never.[4] I also tried approvals_reviewer = "auto_review". Both versions hand the escalation to a reviewer subagent, which sent 4 requests in a row with low effort, a read-only sandbox, and 3 tools. The test model endpoint did not return valid JSON, so exec reported “Automatic approval review failed: guardian assessment was not valid JSON” and did not run the command. A failed review counts as a rejection, which is the right default.
My advice is to write approval_policy explicitly in CI and not rely on defaults. If you only want automatic runs inside the sandbox, use never. If you occasionally need escalation and don’t want to watch, configure auto_review and accept a few extra model requests per escalation. For how harness defaults turn into a bill, see Control the Harness, Control the Cost on this site.
exec resume keeps the thread’s saved policy
The second change is in codex exec resume. I set the config to approval_policy = "never", started the first run with on-request and auto_review on the command line, then resumed without overrides. 0.172 drops back to never on the first resume, so the thread’s saved setting is not reused. 0.174 stays on on-request. Then I resumed with an explicit -c approval_policy='"never"'. 0.174 saved that value on the thread, and the next resume without overrides stayed on never.

The TUI changes in the same release follow the same idea. In 0.174, resume --approve-for-me applies only to the first conversation it opens (#63589), and /new and later resumes go back to the normal launch config. A thread’s permissions now travel with the thread, not with whatever config sits in your current directory. The benefit is that one task keeps one set of rules from start to finish. The cost is that editing the config does not update old threads. To change them, override on resume.
A 0.173 fix (#62585, #62614) covers a different case. A thread that is already running picks up updated approval requirements and Guardian policies when you reload the config, sign in, or sign out.[2] Guardian is the reviewer subagent from the previous section. Put together: a cold resume keeps the thread’s saved settings, and a running thread follows new administrator rules when the config reloads. These two rules govern different things. Keep them apart.
Read-only threads no longer turn writable on resume
This is the change I would upgrade for. PR #64829 describes it like this. On a cold resume, Codex saves the read-only profile on the thread together with concrete read paths computed from the current config. On the next cold resume, that profile with concrete paths no longer qualifies for direct reuse, and the thread falls back to the default writable profile.[5]
I used default_permissions = "dev" as the default ([permissions.dev] extends :workspace and adds one deny rule). I opened a thread with codex exec -s read-only, then ran exec resume --last three times, each turn asking the model to touch a new file. On 0.172 the first two runs show sandbox: read-only and touch exits with 1. On the third run the banner says workspace-write, touch succeeds, and ro-172-2.txt and ro-172-3.txt appear in the project. 0.173 gives the same result. 0.174 stays read-only on all four runs and writes nothing.

One detail stands out. After 0.172 turns writable, the permissions text in the history still says sandbox_mode is read-only, while the current turn’s permission_profile in the environment context already lists write access to the project. The model reads two statements that contradict each other, and execution follows the second one.
There are two simple ways to check your own threads. codex exec resume prints a sandbox: line on every start, so a script can compare it with the value you expect. In the TUI, open /status and read Permissions on the Configuration tab. If your config points default_permissions at a custom profile and you often resume read-only threads, start those threads fresh after the upgrade. Don’t expect a profile already saved on an old thread to fix itself.
The trigger needs to be stated precisely. With only sandbox_mode = "workspace-write" as the default, 0.172 stayed read-only on all four runs and I could not reproduce the bug. It needs a custom permissions profile as the default. The 0.174 fix handles a read-only profile that cannot be reused directly by rebuilding the read grants from the current config. Writes stay off, network access stays restricted, and deny rules from both the saved profile and the current config are kept.
The Linux sandbox and symlink aliases
On Linux, Codex uses bwrap (bubblewrap, a tool that builds sandboxes from mount namespaces) and turns each grant into a mount. A writable directory becomes a writable bind, a read-only directory gets a read-only mount, and a denied path is covered by a mask. Mounts have an order, and a later mount covers an earlier one. 0.172 sorts grants by the path as written. With symlinks in the mix, it can mount a child directory first and its ancestor afterwards. The ancestor’s writable bind then covers the read-only and deny mounts already placed on the child.[6]
Sorting by path is a reasonable approach. Without symlinks, a parent’s path is always a prefix of its child’s, so alphabetical order puts the parent first. Symlinks break that assumption. …/aliases/outer really points at w5, an ancestor of w5/data that inner points at, yet its path string w5/nested/… sorts after w5/inner. 0.174 resolves each writable grant to its real mount destination first, groups grants by that destination, mounts each destination once, and mounts parents before children. Deny rules written under an alias are mapped to their physical paths and applied after the read-only mounts. Read-only mounts below each writable bind are reapplied, and explicit write grants on narrower paths are kept.
codex sandbox -P <profile> -C <dir> -- <cmd> runs a single command inside the sandbox with no model involved. I built a profile from the layout in the PR’s regression test. outer is a symlink to the ancestor directory w5 and inner is a symlink to w5/data, and both are writable. data/private is denied by its real path and inner/nested/readonly is read-only ($W stands for the test directory):
[permissions.alias.filesystem]
"/" = "read"
"$W/sbx/w5/nested/deep/aliases/outer" = "write" # -> $W/sbx/w5
"$W/sbx/w5/inner" = "write" # -> $W/sbx/w5/data
"$W/sbx/w5/data/private" = "deny"
"$W/sbx/w5/inner/nested/readonly" = "read"
Then the same probe script runs in data. It tries to read private/secret and sibling, append to nested/readonly/keep, and create sibling2.

0.172 and 0.173 read private/secret and append a changed line to readonly/keep. 0.174 refuses both, and sibling2 is still writable. Pointing outer at / instead gives the same result.
The hole is narrower than the release note suggests. I tried three more common layouts: :workspace plus a writable symlink to the project’s parent directory, checking whether .git/config is writable; the same layout with a deny on a secrets directory by its real path; and deny and read-only rules written under the alias path. 0.172 blocked all three correctly. So there is no need to panic. Still, if you put symlinks such as ~/work into writable grants on Linux, upgrading is the right call. I did not test the Windows junction fix (#64416).
You can check your own profile with the same command. Pass the profile name from your config to -P and run a command in the project that reads a denied file and writes a read-only one. The example assumes your profile denies secrets/ and keeps .git read-only:
codex sandbox -P <your profile> -C ~/work/project -- sh -c 'cat secrets/.env; echo x >> .git/config'
Both parts should fail. If one succeeds, that rule does not hold for your path layout. Find out now rather than waiting for a model to find out for you.
Reasoning summaries: Auto by default in the TUI
A reasoning summary is a short text the Responses API returns while the model reasons. The TUI uses it to show what the model is thinking about. In 0.172 the TUI submitted turns without this setting, and PR #62904 says OpenAI could then apply concise even though the user never chose it.[7] 0.174 sends auto for OpenAI providers by default. According to OpenAI’s reasoning guide, auto means the most detailed summarizer the model supports.[11] For TUI users, the change is that you no longer need to find this key in the config. New chats show what the model is thinking by default, and you can turn it off.
I looked at the first request of each run. With the TUI and the built-in openai provider, 0.172 sends reasoning as {"effort": "medium"}. 0.174 sends {"effort": "medium", "summary": "auto"} and adds stream_options: {"reasoning_summary_delivery": "sequential_cutoff"}. That second field is the concurrent reasoning summaries feature turned on by #62903. With a custom provider, neither version’s TUI sends summary. codex exec doesn’t send it by default either. With model_reasoning_summary = "detailed" in the config, exec on both versions sends summary: "detailed", but only 0.174 with the built-in openai provider adds sequential_cutoff.[8]

The picker is on the Sessions page of /config, with four options: Auto, Concise, Detailed, and None. Choosing None writes model_reasoning_summary = "none" to the config. The next turn in the current chat still sends auto. After /new, the summary field is gone from requests. That is what “for new chats” in the picker’s subtitle means.

The same page has Collapse turn details, on by default, which folds tool calls into a one-line summary. To see full tool output in the conversation, turn it off. The config key is [tui] collapse_turn_details = false.

Two new exclude headers
0.174 adds two headers to every Responses request, for both the built-in provider and custom providers:
x-codex-exclude: tools,usage.attribution. Added in #62863, it asks the server not to echo the request’s tool catalog back in response events. The tool catalog in this request is 9,208 bytes, and echoing it on every turn is wasted traffic.x-codex-exclude-stream-fields: delta.sequence_number,reasoning.added.encrypted_content. Added in #63461. The reason given is that replaying reasoning only needs the ciphertext from the completed item, so the copy sent when the item is first added can be dropped. A value configured on the provider takes precedence, and an empty value opts out.[9]
Neither 0.172 nor 0.173 sends these headers. A self-hosted gateway that doesn’t know them can respond as usual. If your gateway logs or bills from the tools echoed in responses, check whether OpenAI still sends them after the upgrade.
/status and Cloud
/status is now a window with three tabs: Overview, Configuration, and Session. The Permissions row on the Configuration tab shows the permissions confirmed for the current chat, for example Workspace (Ask for approval). When you need to know what permissions a thread really has, this is more reliable than reading the config. As the sections above show, a thread’s permissions can differ from the config.

The Cloud flags --cloud and --env are in the help for both codex and codex resume. With only an API key, codex --cloud prints “Error: Sign in with ChatGPT and reopen Codex to use Cloud.” and exits with code 1. For what Cloud environments are, see Codex Moves to the Cloud on this site.
How other harnesses handle approvals when nobody is watching
“Who approves?” is a question every harness has to answer for unattended runs. The table lists only options visible in --help, for the versions checked on 2026-12-06:
| Harness | What happens to actions that need approval in unattended mode |
|---|---|
| Codex CLI 0.174.0 | codex exec follows the config. on-request with a human reviewer prints a WARNING and rejects interactive approvals. auto_review hands them to the reviewer subagent. never tells the model not to ask |
| Claude Code 2.1.337 | claude -p with --permission-prompts host or none. With none, anything that would prompt is denied automatically, and --permission-mode (acceptEdits, auto, bypassPermissions, manual, dontAsk, plan) decides the rest |
| Gemini CLI 0.72.0 | --approval-mode default, auto_edit, yolo, or plan, where plan is read-only. The sandbox is a separate -s flag |
| OpenCode 2.4.5 | opencode run --auto approves every permission that is not explicitly denied |
| pi 1.8.0 | --help has no approval or sandbox options |
Codex 0.174 and Claude Code’s --permission-prompts none end up closest: anything that would prompt is rejected, and everything else follows the policy. The difference is the default. Claude Code makes you pick none explicitly. Codex 0.174 does this on its own when you are the reviewer, and tells you with a WARNING. For how the loop and the permission layer divide the work, see The Agent Harness Pattern: Lessons from Claude Code’s Core Loop. For what a sandbox can and cannot contain, Sandboxing Is Not Enough has a longer discussion.
A configuration I would use
For codex exec in CI, I pin the approval policy:
# ~/.codex/config.toml, or a profile passed with -p
approval_policy = "never" # run automatically, inside the sandbox only
# approvals_reviewer = "auto_review" # use the reviewer subagent when escalation is needed
Keep using -s read-only for read-only review jobs. Only from 0.174 does it hold across repeated resumes. When you change the config and want old threads to follow, pass -c approval_policy=… on resume. On Linux, write writable grants as real paths, not symlinks. If you don’t want reasoning summaries in the TUI, pick None in /config.
For the rollout, I would move one CI job to 0.174 first and check three things. Do the approval: and sandbox: lines in the startup banner show the values you want? Is the WARNING on stderr? Does the session history contain tool calls rejected with approval request failed? Roll out everywhere once all three look right. If you run your own gateway, also check its logs to make sure the two new x-codex-exclude headers are not rejected as unknown.
The previous issue in this series covered pi 1.7.0 and OSC 7577 session resume. Before that came Claude Code 2.1.332 MCP skills and the PreSkillShellCommand hook and OpenCode 2.4 automations.
What I tested and what I didn’t
Tested (Linux x64, with 0.172.0, 0.173.0, and 0.174.0 each in its own directory and a fresh HOME and CODEX_HOME for every run; model requests went to a Responses-compatible service on the same machine, all other HTTPS was refused by a local proxy, no real account was used, and nothing left the machine):[10]
codex execapprovals: banner, WARNING, permissions text, and escalation result with the config unset, set toon-request, overridden on the command line, and withauto_review.exec resumeinheritance of the approval policy and reviewer, and explicit overrides on resume.- Three consecutive cold resumes of a read-only thread, with
sandbox_modeand with a custom permissions profile as the default. - Five symlink layouts under
codex sandboxwith bwrap. reasoning,stream_options, and request headers for the TUI and exec, with built-in and custom providers. The/configreasoning summary picker and its effect on new and current chats. The/statustabs.--cloudwithout a ChatGPT sign-in.- Peers:
--helpfor Claude Code, Gemini CLI, OpenCode, and pi.
Not tested:
- Cloud sessions, the Agent Command Center, the
/diffside panel, and reconnect recovery. All of these need a ChatGPT sign-in. - How the real OpenAI service handles
sequential_cutoffand the two exclude headers, and how reasoning summaries actually render in the TUI. /modelsdiscovery on HTTPS gateways (it only applies to HTTPS base URLs), remote plugin signature checks, and async messages from subagents.- The Windows junction fix, and inheritance through
codex fork.
References
- Codex rust-v0.174.0 release notes: https://github.com/openai/codex/releases/tag/rust-v0.174.0 ↩
- Codex rust-v0.173.0 release notes: https://github.com/openai/codex/releases/tag/rust-v0.173.0 ↩
- PR #63515 Honor configured and saved approvals in
codex exec: https://github.com/openai/codex/pull/63515 ↩ - Codex docs, Non-interactive mode: https://developers.openai.com/codex/noninteractive. Configuration reference (
approval_policy,approvals_reviewer,default_permissions,permissions.<name>): https://developers.openai.com/codex/config-reference ↩ - PR #64829 Preserve read-only permissions across repeated thread resumes: https://github.com/openai/codex/pull/64829 ↩
- PR #64415 Preserve Linux sandbox restrictions across writable symlink aliases: https://github.com/openai/codex/pull/64415 ↩
- PR #62904 Use automatic reasoning summaries by default in the TUI: https://github.com/openai/codex/pull/62904. #62905 reasoning summary picker: https://github.com/openai/codex/pull/62905 ↩
- PR #62903 Enable concurrent reasoning summaries by default: https://github.com/openai/codex/pull/62903. Neither the release notes nor the PR explain what
sequential_cutoffmeans on the server side. ↩ - PR #62863 Ask the Responses API to omit the echoed tool catalog: https://github.com/openai/codex/pull/62863. #63461 Request omission of preliminary reasoning ciphertext: https://github.com/openai/codex/pull/63461 ↩
- Inputs such as
RUN:<command>andESCin the screenshots tell the test model endpoint which tool call to make (ESCmeans ask forrequire_escalated).--helpversions: Claude Code 2.1.337, Gemini CLI 0.72.0, OpenCode 2.4.5 (opencode run --help), pi 1.8.0. ↩ - OpenAI docs, Reasoning models (Reasoning summaries section): https://platform.openai.com/docs/guides/reasoning ↩