Skip to content

Keep files in memory in case of disk full truncation #16898

@Yohe-Am

Description

@Yohe-Am

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttool-callsIssues related to tool calling

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions