Skip to content

Critical bug: Codex ignores file timestamps and can corrupt files. #5807

@awronski

Description

@awronski

What version of Codex is running?

codex-cli 0.50.0

What subscription do you have?

PRO

Which model were you using?

codex-high

What platform is your computer?

Darwin 25.0.0 arm64 arm

What issue are you seeing?

I’ve observed that Codex doesn’t check file timestamps.

If Codex is working on a file, and I modify that file in an external editor, Codex can later overwrite my changes. It does this because it doesn’t verify the file’s current state. For example, it doesn’t check the timestamp.

This issue does not occur with Gemini or Claude.

What steps can reproduce the bug?

Uploaded thread: 019a24f0-62c2-7802-971c-797d3e2d77e6

What is the expected behavior?

The expected behavior is to check the file’s timestamp before editing it, as Gemini and Claude do. If the timestamp has changed, Codex should re-read the file to avoid corrupting it.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmodel-behaviorIssues related to behaviors exhibited by the model

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions