Skip to content

Codex cannot edit file. Claims its read only when its set to Full Access #6428

Closed

Description

@Thelastpoet

What version of Codex is running?

codex-cli 0.55.0

What subscription do you have?

API and Plus

Which model were you using?

gpt5

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 64-bit

What issue are you seeing?

Whenever I start codex I set to Full Access but everytime it will report back
"Your repo is read‑only here, so below are precise, minimal edits you can apply."

When asked it says "My current session reports sandbox_mode=read-only and rejected my write attempt with “approval policy is Never,”"

Then it proceeds to paste the instructions

What steps can reproduce the bug?

Start Codex and switch approvals to "Full Access" As it to edit a file.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on Nov 9, 2025
  2. added
    CLI
    windows-os
    sandbox
    on Nov 9, 2025
  3. satha-n commented on Nov 9, 2025

    @satha-n

    Having the same issue.

  4. etraut-openai commented on Dec 23, 2025

    @etraut-openai
    Contributor

    This bug report is pretty stale and likely no longer relevant. Closing.

  5. belplaton commented on Dec 29, 2025

    @belplaton

    but it still happens on 0.77.0. @etraut-openai

    Image

    config.toml:
    model = "gpt-5.2-codex"
    model_reasoning_effort = "high"
    approval_policy = "never"
    sandbox_mode = "workspace-write"
    sandbox = "workspace-write"

    [projects.'E:\GitHub\TTR24']
    trust_level = "trusted"

  6. etraut-openai commented on Dec 29, 2025

    @etraut-openai
    Contributor

    @belplaton, if you're seeing a behavior like this, please file a new bug using the /feedback command to upload your logs and session data.

  7. Marcos-SA-git commented on Jul 1, 2026

    @Marcos-SA-git

    Seeing what looks like the same problem, on a different setup: Windows, Codex CLI 0.142.4, driven through the Codex Claude Code plugin (codex-plugin-cc) rather than the interactive CLI directly.

    I ask Codex to write to disk (create a file, delete a folder — nothing unusual, just a normal edit inside my own project directory), and it consistently comes back refusing with a read-only sandbox error, even though I explicitly requested write access. Every time, not intermittent. The error wording lines up closely with what's already reported here.

    Happy to share exact repro steps/logs if useful.

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

    CLIbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions