Skip to content

Approval mode "read-only" option #11915

Open

Description

@tolgaytoklar

What version of Codex CLI is running?

0.101

What subscription do you have?

plus

Which model were you using?

gpt-5.3-codex

What platform is your computer?

macOS

What terminal emulator and version are you using (if applicable)?

Terminal.app

What issue are you seeing?

In recent updates the approval mode called “read-only” either no longer appears in the CLI selectors. When selecting what used to be read-only, I observe that read-only mode no longer triggers on-demand approvals for edits — commands execute without prompting or force the CLI to use auto mode. This differs from historical behavior where every edit in read-only mode would explicitly ask for user approval. I expect to be prompted for approval before any file change when in read-only mode.

What steps can reproduce the bug?

  1. Run codex --version and confirm 0.101
  2. Start CLI in a directory with files
  3. Run /approvals and try selecting “Read Only”
  4. Request a file edit (e.g. some simple change)
    → CLI either does not prompt for approval or defaults to auto mode. Older behavior used to require approval.

What is the expected behavior?

Read-only/approval mode should explicitly ask for permission before any write or command that modifies files.

Additional information

Multiple similar issues have been reported on GitHub regarding approval and read-only interactions not working as intended.

Activity

  1. added
    bug
    on Feb 16, 2026
  2. added
    CLI
    sandbox
    on Feb 16, 2026
  3. changed the title [-]Approval mode "read-only" behavior removed[/-] [+]Approval mode "read-only" option removed[/+] on Feb 16, 2026
  4. changed the title [-]Approval mode "read-only" option removed[/-] [+]Approval mode "read-only" option[/+] on Feb 16, 2026
  5. added
    enhancement
    and removed
    bug
    on Feb 16, 2026
  6. etraut-openai commented on Feb 16, 2026

    @etraut-openai
    Contributor

    This change was intentional and was an attempt to simplify the approval UI, which many users found difficult to understand.

    I've changed this from a bug report to an enhancement request, and we can see if it gets upvotes.

  7. yash27-lab commented on Feb 16, 2026

    @yash27-lab

    I put together a scoped fix that keeps /permissions behavior unchanged, but restores Read Only under /approvals (legacy command). That keeps the simpler default UX while still giving users an explicit read-only path when they ask for approvals directly.

    Proposed behavior:

    • /permissions on non-Windows: Default, Full Access (unchanged)
    • /approvals: Read Only, Default, Full Access

    I’ll open a PR and link it here. #11931

  8. etraut-openai commented on Feb 16, 2026

    @etraut-openai
    Contributor

    @yash27-lab, we are not accepting PRs from external contributors. Please review our contribution guidelines. As I mentioned, this change was intended, so we don't consider it a bug.

  9. CptRenko commented on Feb 17, 2026

    @CptRenko

    This change was intentional and was an attempt to simplify the approval UI, which many users found difficult to understand.

    I've changed this from a bug report to an enhancement request, and we can see if it gets upvotes.

    Hi, I strongly believe this is not a good solution for the problem.

    I'm working on a complex CUDA/C++ codebase, and quite often Codex attempts to apply incorrect changes, duplicate code, or modifications that lack full context, or bad-performance code in hot paths.

    In those situations, I need to review the proposed diff carefully and provide feedback before anything is applied.

    With auto-apply enabled, this could severely damage the codebase before I have the opportunity to reject or correct the changes.

    For my work, manual review before applying changes is critical.

  10. latyshev commented on Feb 19, 2026

    @latyshev

    @CptRenko you can set the trust_level to untrusted in ~/.codex/config.toml. This will return approvals back.

    [projects."/Desktop/your_project"]
    trust_level = "untrusted"
  11. tolgaytoklar commented on Feb 19, 2026

    @tolgaytoklar
    Author

    @CptRenko you can set the trust_level to untrusted in ~/.codex/config.toml. This will return approvals back.

    [projects."/Desktop/your_project"]
    trust_level = "untrusted"

    @latyshev It is still a pain to change approval modes on the fly. Sometimes you know the model will do everything correctly and you just want to allow it, then switch back to read-only mode.

    I can’t believe they removed this option instead of keeping it as a configurable setting. You could still set the default to agent mode.

    I believe they should also add a Shift+Tab shortcut to cycle through approval modes, similar to how it works in Claude Code. It’s an excellent feature.

  12. CptRenko commented on Feb 19, 2026

    @CptRenko

    Thanks @latyshev — that’s better than nothing.

    That said, I fully agree with @tolgaytoklar. Changing approval behavior on the fly is frustrating and disrupts established workflows.

    I don’t understand why the option was removed instead of simply making the new behavior the default while keeping it toggleable. Even if the default had changed, that wouldn’t be an issue — but removing the choice entirely is what makes it problematic.

    This change felt abrupt and ended up breaking several workflows that relied on read-only mode behavior. Predictability and explicit control are especially important in complex or sensitive codebases.

  13. karim-elessawy-arm commented on Feb 20, 2026

    @karim-elessawy-arm

    Setting sandbox_mode to read-only in config.toml shows a 3rd Option for approvals (Custom) ... upon selecting this the old behavior seems to be restored for me

  14. e8y commented on Feb 22, 2026

    @e8y

    +1

    Need a way to quickly toggle read-only within the same session.

  15. bogdan-barbu commented on Feb 25, 2026

    @bogdan-barbu

    This change was intentional and was an attempt to simplify the approval UI, which many users found difficult to understand.

    I've changed this from a bug report to an enhancement request, and we can see if it gets upvotes.

    No, it isn't. It's a coercion mechanism by which you try to force users to give more control to agents than they want to. I suspect if you didn't fear the backlash from people's systems being thrashed you would force full control. There is no way anyone was ever confused by what read-only permissions meant.

    A temporary workaround is probably to limit the program's permissions at the OS level. Although I wouldn't be surprised if they'll check for that and refuse to run to be extra coercive.

  16. Carmezim commented on Feb 25, 2026

    @Carmezim

    Put this back please

  17. etraut-openai commented on Feb 25, 2026

    @etraut-openai
    Contributor

    Thanks for the feedback. We're discussing options here and are looking at how to bring this back. We want to do so in a way that takes into account the feedback from other users that led us to remove this in the first place.

  18. thebobbyboy420 commented on Mar 5, 2026

    @thebobbyboy420

    This change was intentional and was an attempt to simplify the approval UI, which many users found difficult to understand.
    I've changed this from a bug report to an enhancement request, and we can see if it gets upvotes.

    No, it isn't. It's a coercion mechanism by which you try to force users to give more control to agents than they want to. I suspect if you didn't fear the backlash from people's systems being thrashed you would force full control. There is no way anyone was ever confused by what read-only permissions meant.

    A temporary workaround is probably to limit the program's permissions at the OS level. Although I wouldn't be surprised if they'll check for that and refuse to run to be extra coercive.

    so true bro, i have codex skills disabled and it still tries to use them. going to file a bug report later today

  19. jamesHanKey commented on Mar 6, 2026

    @jamesHanKey

    I’m seeing the same issue.
    I get nervous when prompting something like “could you do X without making any edits,” because it could still affect or even corrupt my current uncommitted changes.

    This change was intentional and was an attempt to simplify the approval UI, which many users found difficult to understand.

    I understand that repeated approval prompts can feel annoying to some users and may create support overhead, but that does not mean explicit permission before making changes is unnecessary.

  20. godspeedpepol commented on Mar 6, 2026

    @godspeedpepol

    I have a huge codebase and don trust it change all without knowing if is correct or not, and i hate save all the code on git to be able to roll back.. it simple do not have sense

    i put read-only on config.toml and now it simple nagate to make anything if i not configure a sandbox to write mode. ??=¿=¿?

  21. jpicht commented on Mar 11, 2026

    @jpicht

    I constantly ran into the issue when doing PR reviews, even using the builtin /review didn't stop codex from changing files and complaining about those changes. I have tried yelling REMEMBER: READ ONLY with every input, but that got old fast, leading me to switch away from codex.
    Without the read-only option codex is useless as a review tool.

  22. godspeedpepol commented on Mar 11, 2026

    @godspeedpepol

    I must go away from using it now. It cannot revert to older versions and gives an error every time. It is unusable; it creates and changes files as it wants. I am waiting for a fix and using Cline in between.

  23. codereptile commented on Mar 14, 2026

    @codereptile

    I guess we're canceling our plans and moving to claude. Thank god there's an alternative.

  24. removed
    CLI
    on Mar 27, 2026
  25. andrewchen5678 commented on May 5, 2026

    @andrewchen5678

    This and #9203 together hurts ux a lot for codex where other coding agents don't have similar issues and keeps me away from using codex more.

  26. hyperbetteri commented on Sep 1, 2026

    @hyperbetteri

    Public-safe control pattern: READ_ONLY must be an invariant, not a label

    Author: Almási Andor Aladár

    A reliable read-only mode should have a simple hard contract:

    1. READ_ONLY may inspect, search, hash, compare, and report.
    2. It may not create, edit, overwrite, move, rename, delete, chmod, reconfigure, or otherwise mutate user/project state.
    3. If a requested next step requires mutation, the mode transition must be explicit and separately authorized.
    4. A tool fallback, agent retry, shell command, or internal planning step must not silently widen read-only authority.
    5. The runtime should verify the effective operation, not trust the model's textual description of it.
    6. If the execution layer cannot prove the operation is non-mutating, it should block it in READ_ONLY.

    Prompt wording can reinforce this behavior, but a genuine read-only guarantee has to be enforced below the model layer.

    Copyright © 2026 Almási Andor Aladár. Public-safe excerpt; no disclosure or license of the underlying private architecture.

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

    enhancementsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions