Failed to write file - Permission denied (os error 13)
Resolved 💬 4 comments Opened Aug 4, 2025 by kelso Closed Aug 12, 2025
What version of Codex is running?
codex-cli 0.11.0
Which model were you using?
codex-mini-latest
What platform is your computer?
Linux 5.15.167.4-microsoft-standard-WSL2 aarch64 aarch64
What steps can reproduce the bug?
- run codex as
codex -a never - enter any prompt that will modify project files
What is the expected behavior?
Files are modified/created,
What do you see instead?
applying patch
(...)
event
PatchApplyEnd(PatchApplyEndEvent { call_id: "call_pNSNkpWbKeW6yIryVZNy1aiw", stdout: "", stderr: "Failed to write file app/views/dashboard/media_items/_media_item.html.erb\n\nCaused by:\n Permission denied (os error 13)\n", success: true })
And btw the result is taking too much time - like minutes for basic question, i.e. "create new file example.txt"
Additional information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗