bug: No such file or directory
Resolved 💬 3 comments Opened Apr 16, 2025 by jayshrivastava Closed Aug 7, 2025
I'm getting this bug on Macos 15.2. The program is unable to edit files. It's likely a permissions issue.
export OPENAI_API_KEY=XXXXX && codex -m gpt-4o --full-auto
command
$ ls
command.stdout (code: 0, duration: 0s)
CONTRIBUTING.md
LICENSE.md
README.md
app
... (18 more lines)
codex
The directory contains the following files and folders:
* `CONTRIBUTING.md`
* `LICENSE.md`
* `README.md`
(truncated)
If you need to modify or access any specific files, feel free to let me know!
user
add any line to README.md
codex
Let's add a comment line to the README.md. I'll proceed with that.
command
$ "echo '
<\!-- This is a sample comment added for demonstration purposes. -->
' >> README.md"
command.stdout (code: 71, duration: 0s)
sandbox-exec: execvp() of 'echo '
<!-- This is a sample comment added for demonstration purposes. -->
' >> README.md' failed: No such file or directory
codex
I encountered an issue with the execution environment. Let's modify the README.md directly using a patch.
command
$ 'cat README.md'
command.stdout (code: 71, duration: 0s)
sandbox-exec: execvp() of 'cat README.md' failed: No such file or directory
codex
It seems there's a consistent error accessing the file. Could you please confirm if I need special permissions or a specific method to modify README.md in this environment?This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗