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

Published on December 6, 2026 by Remy

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 situationWhat to do
You want to upgradenpm 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_policyTo 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 resumeThe 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.*] profileUpgrade. 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 grantsUpgrade. 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 summariesPick None under /config → Sessions → Reasoning summary, or set model_reasoning_summary = "none". It applies to new chats only
You run your own Responses-compatible gateway0.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 --cloudYou need a ChatGPT sign-in. With only an API key it exits with an error
Which approval policy codex exec uses (tested on 0.172.0 and 0.174.0)Case0.172.00.174.0New thread, config unset or on-request,you are the reviewerforced to never: the model is told notto askon-request with a stderr WARNING;escalations rejected at onceon-request + approvals_reviewer =auto_reviewon-request, reviewed by the reviewersubagentsame-c approval_policy=… on the commandlinethe flag valuethe flag value, saved on the threadexec resume, no overridesaved policy not reused (followedconfig: never)saved policy and reviewer reusedexec resume -c approval_policy=nevernevernever, and later resumes stay neverNeither version ran the escalated command. The difference is what the model is told: 0.174 adds a ~3.6 KB Escalation Requestssection, so the model asks first and gets rejected.

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 auto for OpenAI providers by default, and the Sessions page of /config has 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 --cloud and codex resume --cloud are new, with --env <ENV_ID> to pick an environment. The Agent Command Center lists local and Cloud tasks together. /status is 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 and PreToolUse hooks accept onFailure: block.

Three versions, each in its own directory. The 0.174 resume --help adds --cloud and --env. With only an API key, codex --cloud exits with an error

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.

No approval_policy in config: 0.172 shows approval: never and the policy rejects the escalation; 0.174 shows on-request, prints the WARNING, then rejects with approval request failed

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.

Config says never, first run sets on-request on the command line: 0.172 falls back to never on resume, 0.174 keeps on-request until a resume sets never explicitly

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.

A read-only thread across cold resumes (default_permissions is a custom writable profile)exec -s read-onlyresume 1resume 2resume 30.172.0read-onlyread-onlywritable ✗writable ✗0.174.0read-onlyread-onlyread-onlyread-only• Resume 1 saves the read-only profile together with concrete read paths computed from the current config.• On resume 2, 0.172 decides that profile cannot be reused as-is and falls back to the writable default: touch succeeds andthe file lands in the project.• 0.174 rebuilds the read grants from the current config, keeps writes off and network restricted, and keeps denies fromboth sources.• With plain sandbox_mode = "workspace-write" as the default, 0.172 stayed read-only on all four runs.

Banner and touch result over four exec runs: from the third run 0.172 switches to workspace-write and writes two files; 0.174 is read-only every time

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.

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.

How the Linux sandbox mounts symlink aliases (codex sandbox, bwrap, tested)Grants: outer (symlink to ancestor w5) write; inner (symlink to w5/data) write; data/private deny; inner/nested/readonly read0.172.0: sorted by the path as written1 writable bind …/w5/inner → data (sorts first)2 mask private, mount readonly read-only on data3 writable bind …/aliases/outer → w5 (ancestor, later)4 bind 3 remounts all of w5 writable over 2Result: private/secret readable, readonly/keep appended0.174.0: grouped by the resolved directory1 resolve: outer → w5, inner → w5/data2 parents first: bind w5, then w5/data3 after the writable binds, reapply read-only and deny mounts on the physical paths. 2 survivesResult: secret unreadable, keep not writable, sibling2 writableTrigger: a writable grant is a symlink to an ancestor and its path sorts after the other grants. Plain workspace-writewith .git, or a deny spelled under the alias, worked on 0.172 too.

Same profile: 0.172 can read private/secret and append to readonly/keep; 0.174 refuses both, and sibling2 is still writable

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]

First /responses request per run: only the 0.174 TUI with the openai provider carries summary auto and sequential_cutoff; custom providers carry neither; 0.174 sends both exclude headers to both providers

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.

0.174 TUI, /config → Sessions → Reasoning summary: Auto (default), Concise, Detailed, None

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.

Sessions page of /config: Reasoning summary shows Auto (default), with Collapse turn details below

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.

0.174 /status, Configuration tab: Model provider, Directory, Permissions: Workspace (Ask for approval)

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:

HarnessWhat happens to actions that need approval in unattended mode
Codex CLI 0.174.0codex 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.337claude -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.5opencode 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 exec approvals: banner, WARNING, permissions text, and escalation result with the config unset, set to on-request, overridden on the command line, and with auto_review.
  • exec resume inheritance of the approval policy and reviewer, and explicit overrides on resume.
  • Three consecutive cold resumes of a read-only thread, with sandbox_mode and with a custom permissions profile as the default.
  • Five symlink layouts under codex sandbox with bwrap.
  • reasoning, stream_options, and request headers for the TUI and exec, with built-in and custom providers. The /config reasoning summary picker and its effect on new and current chats. The /status tabs. --cloud without a ChatGPT sign-in.
  • Peers: --help for Claude Code, Gemini CLI, OpenCode, and pi.

Not tested:

  • Cloud sessions, the Agent Command Center, the /diff side panel, and reconnect recovery. All of these need a ChatGPT sign-in.
  • How the real OpenAI service handles sequential_cutoff and the two exclude headers, and how reasoning summaries actually render in the TUI.
  • /models discovery 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

  1. Codex rust-v0.174.0 release notes: https://github.com/openai/codex/releases/tag/rust-v0.174.0 ↩
  2. Codex rust-v0.173.0 release notes: https://github.com/openai/codex/releases/tag/rust-v0.173.0 ↩
  3. PR #63515 Honor configured and saved approvals in codex exec: https://github.com/openai/codex/pull/63515 ↩
  4. 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 ↩
  5. PR #64829 Preserve read-only permissions across repeated thread resumes: https://github.com/openai/codex/pull/64829 ↩
  6. PR #64415 Preserve Linux sandbox restrictions across writable symlink aliases: https://github.com/openai/codex/pull/64415 ↩
  7. 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 ↩
  8. 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_cutoff means on the server side. ↩
  9. 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 ↩
  10. Inputs such as RUN:<command> and ESC in the screenshots tell the test model endpoint which tool call to make (ESC means ask for require_escalated). --help versions: Claude Code 2.1.337, Gemini CLI 0.72.0, OpenCode 2.4.5 (opencode run --help), pi 1.8.0. ↩
  11. OpenAI docs, Reasoning models (Reasoning summaries section): https://platform.openai.com/docs/guides/reasoning ↩