error: can't create new files
First, wonderful tool. Wow.
Second: it spent a good ~5 minutes rolling through my app, then when it went to start implementing, it asks to run the following shell command:
Shell Command │
│ │
│$ apply_patch "* Begin Patch │
│* Add File: scripts/convert-zwo-to-fit.js
- when I say 'y' it then "runs" the apply_patch tool, but it never actually does -- ENOENT: no such file or directory, open 'scripts/convert-zwo-to-fit.js'
TEMP FIX: If I manually create the file/directory, it immediately pastes the contents into the file and continues.
3 Comments
I'm running Kubuntu 24, Konsole, zsh, node v22.14, codex version 0.1.2504161551. I encounter a similar issue, but with a different error message:
---
Prompt that caused the issue
Hi GPT! Checkout gpt.txt in the current dir for more info.
These are your instructions in a sense. Besides these, keep in mind I'll need to review any code changes you make. But that's for later, for now, formulate a plan and explore the code for info you need.
Also, get back to me after reading ~20k words or more, I have a rate limit of 200k tokens, and the CLI we're interacting in crashes if we hit it which is .... aweful. Use a file to store findings as you work, update it frequently.
Another thing, this is our 3rd try. The first failed due to rate limits, the second had a
ErrnoException.Here's the error:
Here's the file content you wanted to write:
same issue while editing a file
Thank you for the feedback! Please try again on the latest version of Codex CLI. If the issue persists, we're happy to take a look.