codex icon indicating copy to clipboard operation
codex copied to clipboard

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

Open Thelastpoet opened this issue 1 year ago • 6 comments

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

Thelastpoet avatar Nov 09 '25 16:11 Thelastpoet

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #6374
  • #6090
  • #5202
  • #5084

Powered by Codex Action

github-actions[bot] avatar Nov 09 '25 16:11 github-actions[bot]

Having the same issue.

satha-n avatar Nov 09 '25 17:11 satha-n

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

etraut-openai avatar Dec 23 '25 04:12 etraut-openai

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"

belplaton avatar Dec 29 '25 08:12 belplaton

@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.

etraut-openai avatar Dec 29 '25 16:12 etraut-openai

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.

Marcos-SA-git avatar Jul 01 '26 02:07 Marcos-SA-git