Keep files in memory in case of disk full truncation
Resolved 💬 1 comment Opened Apr 6, 2026 by Yohe-Am Closed May 10, 2026
What variant of Codex are you using?
CLI
What feature would you like to see?
On Linux, when Codex tries to modify a file, if it's full, the file is truncated to 0 length. On a traditional code editor, this isn't as traumatic since one can clear up space and save from the buffer again to rescue changes. But with Codex, one has to ask the model to reproduce the file from VCS history and it's context memory. Viable but not comfortable.
Additional information
Not sure how to best expose this feature but the model already sees when a file save fails due to full disk. Maybe it should be provided with a tool call for recovery when it happens?
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗