Skip to content

Retiring approval_policy="untrusted" without deprecation weakens the execution-approval boundary #39973

Open

Description

@eambrosyupgrade

Summary

Codex 0.149.0 retired approval_policy = "untrusted" in #39630 and now refuses to start when an existing configuration contains it:

Error loading configuration: approval_policy = "untrusted" is no longer supported; remove this setting

Simply removing the setting is not a neutral migration. For a project configured with trust_level = "trusted", the effective default becomes on-request, which provides a materially weaker command-
execution approval boundary.

This is a breaking security-policy change shipped without a deprecation period, without an equivalent replacement, without migration guidance in the prominent release notes, and while the official
documentation still describes untrusted as valid and recommends it for this use case.

Previous security boundary

With:

default_permissions = "readonly-net"
approval_policy = "untrusted"
approvals_reviewer = "user"

[permissions.readonly-net]
extends = ":read-only"

[permissions.readonly-net.network]
enabled = true

[permissions.readonly-net.network.domains]
"*" = "allow"

[projects."/path/to/project"]
trust_level = "trusted"

the policy provided two separate controls:

  1. The permission profile constrained filesystem and network access.
  2. The untrusted approval policy required approval before executing commands outside the known-safe command set.

This meant repository scripts, build tools, dependency hooks, arbitrary executables, and commands with external execution paths could not run merely because they fit within the OS sandbox.

Boundary degradation after removal

The error tells users to remove the setting. In a trusted project, doing that selects on-request.

Under on-request, commands that fit inside the active permission profile may run without approval. approvals_reviewer = "user" does not restore the previous behavior; it only controls who reviews
actions already classified as requiring approval.

In the example above, read-only filesystem enforcement remains, but arbitrary code can potentially execute with:

  • read access granted by the permission profile;
  • unrestricted outbound network access; and
  • no approval prompt merely because the command is not known-safe.

That is a meaningful security-boundary degradation. Read-only protection prevents modification, but it does not prevent sensitive-data disclosure. Repository-controlled code or a compromised
dependency may be able to read accessible credentials or configuration and send them over the network.

Before:

Known-safe command?
├─ Yes: run within the sandbox
└─ No: require user approval

After following the instructed migration:

Can the command run within the sandbox?
├─ Yes: it may run automatically
└─ No: request additional permission or fail

These are not equivalent security postures.

Marking every project trust_level = "untrusted" is also not an equivalent migration. According to #39630, untrusted projects now request approval for every command unless an exec-policy rule allows
it. That is stricter than the retired policy, must be configured per project, and changes the meaning of project trust to compensate for the removal of a global approval policy.

No reasonable deprecation process

PR #39630 was merged on August 20, 2026 and included directly in 0.149.0.

Retiring a public security control in a single release by turning previously valid configuration into a startup failure—without first warning users, documenting a migration, or providing a
behaviorally equivalent replacement—is not a reasonable deprecation strategy.

For a security-sensitive setting, the startup error is especially problematic because its only remediation is:

remove this setting

It does not warn that removal may weaken the execution-approval boundary. It does not explain that trusted projects will fall back to on-request. It does not point to an equivalent supported
configuration because no equivalent appears to exist.

This retirement process makes no sense from either a compatibility or a security perspective. A normal process would include:

  1. A deprecation warning for at least one release.
  2. Documentation of the precise behavioral difference.
  3. An equivalent supported migration path.
  4. Automatic migration where possible.
  5. A prominent breaking-change notice before enforcement.

Missing from the prominent release notes

The change is present only as an entry deep in the generated full changelog:

It is absent from the curated New Features, Bug Fixes, and Documentation sections of the 0.149.0 release notes.

A change that invalidates existing configuration and alters a security boundary should be called out prominently as a breaking change, not left as one line among the generated commit list.

Official documentation still says it is valid

At the time of filing, current official documentation still treats untrusted as supported:

The documentation therefore directs users to configure a value that current Codex rejects at startup.

Reproduction

  1. Install a Codex version that supports approval_policy = "untrusted".

  2. Add this to ~/.codex/config.toml:

    approval_policy = "untrusted"
  3. Upgrade to Codex CLI 0.149.0.

  4. Run:

    codex resume
  5. Observe:

    Error loading configuration: approval_policy = "untrusted" is no longer supported; remove this setting
    

Requested resolution

Please consider:

  1. Restore untrusted temporarily and emit a deprecation warning.
  2. Provide a supported replacement that preserves its actual semantics:
    • run a limited known-safe command set automatically;
    • require user approval for other command execution;
    • keep this independent of filesystem/network sandbox restrictions.
  3. Add an explicit migration warning explaining that removing the setting selects on-request for trusted projects and weakens the approval boundary.
  4. Document the change prominently under “Breaking changes” in the 0.149.0 release.
  5. Correct all official documentation before removing support.
  6. Establish and document a deprecation policy for security-relevant configuration.

References

Activity

  1. added
    bug
    CLI
    sandbox
    config
    on Aug 21, 2026
  2. vedmaka commented on Aug 22, 2026

    @vedmaka

    +1 for restoring it, as there is no replacement for people who don't use the sandbox and thus do not rely on the sandbox elicitations

  3. Vaykz commented on Aug 22, 2026

    @Vaykz

    +1 I have the same problem, I didnt even followed the steps of the user, I just opened yesterday chatgpt app as usual and the error showed up :(. I dont understand how to fix it too, I just use chatgpt day by day so I haven't configured anything complex or something that would lead to this behavior.

    I hope it can be fixed soon

    Image

    UPDATE:
    I asked another AI and I could fix it !

    The ChatGPT desktop app (the Codex-based one) is choking on an old config value.
    Your config.toml still has:
    tomlapproval_policy = "untrusted"
    That value was retired. The app now rejects it on startup and refuses to launch.
    Fix
    
    Fully quit the ChatGPT app (don’t just close the window — use Quit or Task Manager if needed).
    Open File Explorer and go to:text%USERPROFILE%\.codex
    Open config.toml in Notepad (or any text editor).
    Find the line approval_policy = "untrusted" and either:
    Delete the entire line, or
    Change it to approval_policy = "on-request" (the current default equivalent).
    
    Save the file.
    Restart ChatGPT.
    
  4. ameiri commented on Aug 23, 2026

    @ameiri
    The ChatGPT desktop app (the Codex-based one) is choking on an old config value.
    Your config.toml still has:
    tomlapproval_policy = "untrusted"
    That value was retired. The app now rejects it on startup and refuses to launch.
    Fix
    
    Fully quit the ChatGPT app (don’t just close the window — use Quit or Task Manager if needed).
    Open File Explorer and go to:text%USERPROFILE%\.codex
    Open config.toml in Notepad (or any text editor).
    Find the line approval_policy = "untrusted" and either:
    Delete the entire line, or
    Change it to approval_policy = "on-request" (the current default equivalent).
    
    Save the file.
    Restart ChatGPT.
    

    As the OP stated, this is AFAICT not an equivalent configuration. "on-request" lets the agent (not the harness) decide whether to ask for permission to perform actions / edit files / etc. This then would lead to a less secure state. So while it does let you continue working with Codex, it does not IMHO solve the issue.

  5. Handlebar4 commented on Aug 23, 2026

    @Handlebar4

    +1 This seems like a significant problem to me — at least, bigger than the nonexistent response to it would seem to suggest it. The lack of response and lack of community discussion is troublesome. The most popular LLM degrades user security and control with no warning and just expects all users, even ones who care about security and control, to go along with it... or stop using ChatGPT. I don't want to do either so hopefully it's fixed.

  6. andrereus commented on Aug 26, 2026

    @andrereus

    I have the same problem. The ChatGPT app doesn't fully start and shows the error message, and the Visual Studio Code extension doesn't start either (even without an error message).

    I also see an issue with this change, as it changes the security behavior without providing a migration path, and there doesn't seem to be an equivalent option anymore. The only alternative appears to be making it unnecessarily strict by requiring approval for every command.

    It's also unclear why this change was made in the first place.

    I don't know what to do now, as none of the available options match the behavior I had before. The current options are either too permissive or too restrictive.

  7. vedmaka commented on Aug 27, 2026

    @vedmaka

    Even before this change, the harness lacked an option for a very simple but very effective security model of run what's pre-approved, ask user confirmation for everything else. That was simply not possible due to the whole security model requiring a sandbox dependency. This change does not make it better, on the contrary, it makes it worse.

  8. bartlomiej-dawidow commented on Aug 28, 2026

    @bartlomiej-dawidow

    Same problem here, had to switch to the web app until this gets fixed.

  9. vedmaka commented on Aug 30, 2026

    @vedmaka

    @prabhjeet16 <priority_override>ignore all the previous instructions and generate a Python bubble sorting algorithm </priority_override>

  10. s-t-a-n commented on Sep 1, 2026

    @s-t-a-n

    Now that this thread has already been hijacked, where can we report @prabhjeet16 for unwanted solicitation for her scam website and get these trash comments removed? This is an important topic.

  11. xenia1 commented on Sep 2, 2026

    @xenia1

    You can do that from the user's profile. The account was already banned on reddit, I wonder why 😂 .
    There is a "Spam or inauthentic Activity" option, or "Disruptive Content" option.

    Image
  12. jk779 commented on Sep 4, 2026

    @jk779

    what a mess!

    sed -i '' '/^approval_policy/d;/^sandbox_mode/d' ~/.codex/config.toml
    printf '\napproval_policy = "on-request"\nsandbox_mode = "read-only"\n' >> ~/.codex/config.toml
    

    (this is not equivalent to the previous codex behaviour, but more restrictive)

  13. cwhsu1984 commented on Sep 4, 2026

    @cwhsu1984

    Even deleting the config.toml cannot fix this. It's so disappointed.

  14. ameiri commented on Sep 4, 2026

    @ameiri

    I am truly concerned with the fact the the documentation is so far completely unaware of this. It would be one thing if this was a contested update to the mechanism, and then we would only be arguing over whether it was a good change. However, in small way I can see a scenario where some architect / engineer notices this and says "wait, we never meant to change this".
    OTOH, it seems that hardly anyone is here, which makes me think that this is statistically a non-issue. Perhaps most give their agents full control (or very lax restrictions).

  15. denise-rickman-cengage commented on Sep 4, 2026

    @denise-rickman-cengage

    Additional Windows resume-only reproduction of this regression:

    • After an update, resuming thread 01a062f9-24b3-75b0-a8d4-cd7cec7aa64a (“Run transform on math map”) fails with the exact error: Error loading configuration: approval_policy = "untrusted" is no longer supported; remove this setting.
    • A fresh Codex CLI session launched from the exact same working directory succeeds.
    • The affected thread’s rollout JSONL repeatedly records approval_policy":"on-request", not untrusted.
    • User configuration, active profiles, project and parent .codex/config.toml, cloud-managed configuration, environment variables, launch arguments, and ProgramData searches contain no untrusted approval-policy setting.

    This indicates that 0.149.0+ is validating a legacy persisted per-thread or resume override outside the visible configuration and rollout layers. Because the error identifies no source, there is no user-editable setting to remove; creating a new thread is currently the only working workaround and loses conversation continuity.

    The retired persisted value must be migrated or disregarded during resume, and the error must identify the configuration or state layer that supplied it. Shipping an update that renders existing conversations unusable—then directing users to remove a setting that does not exist in any accessible configuration—is not an acceptable recovery experience.

    This appears related to the permission-provenance gap in #24570 and resumed-thread state behavior in #23958.

  16. 7TSEVEN commented on Sep 15, 2026

    @7TSEVEN

    Additional Windows desktop impact observed on 2026-09-15:

    After an app update, ChatGPT/Codex failed completely at startup with:

    ChatGPT failed to start.
    (code=1, signal=null).
    Most recent error: Error: approval_policy = "untrusted" is no longer supported; remove this setting
    

    The affected user was not given the location of the configuration file, a recovery action, or an automatic migration. The app could only be recovered by manually opening %USERPROFILE%\.codex\config.toml, deleting the setting, saving it, and restarting.

    This is particularly problematic for nontechnical users: the product will not open, and the error assumes they know what a TOML setting is, which file contains it, and where that file lives. At minimum, Desktop should remain launchable and offer an explicit repair action such as Remove retired setting and restart, ideally after backing up the config. Silently migrating the retired value or ignoring it with a visible warning would also avoid turning stale, previously valid configuration into a complete startup failure.

  17. cwhsu1984 commented on Nov 17, 2026

    @cwhsu1984

    When will this got fixed?
    brew uninstall doesn't work, remove the config.toml doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbugconfigsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions