Skip to content

Codex often overwrites recent code. #24460

Closed

Description

@plmrry

What version of Codex CLI is running?

0.133.0

What subscription do you have?

I don't know. Enterprise?

Which model were you using?

gpt-5.5

What platform is your computer?

No response

What terminal emulator and version are you using (if applicable)?

No response

Codex doctor report

What issue are you seeing?

Codex will often replace modified code with old code from it's memory:

  1. I ask Codex to modify some code.
  2. I manually modify the code myself.
  3. I ask Codex about the code again, and it reverts the code to something in its memory.

What steps can reproduce the bug?

Uploaded thread: 019e5f94-4f53-7103-8b1a-ae13700eb989

  1. Ask Codex to edit a file
  2. Work on some other stuff
  3. Edit the file yourself (without committing changes)
  4. Ask Codex to edit the file again

What is the expected behavior?

I would like Codex to see my recent changes and not overwrite them (or at least not without asking me)

Additional information

This can happen with any agent, but I've seen it the most often with Codex

Activity

  1. added
    CLIIssues related to the Codex CLI
    model-behaviorIssues related to behaviors exhibited by the model
    on May 25, 2026
  2. etraut-openai commented on May 25, 2026

    @etraut-openai
    Contributor

    Thanks for the bug report. This appears to be model behavior, not a Codex harness issue. We'll share the feedback with the team responsible for training our codex models. We're tracking this feedback and similar reports so we can improve future models. And thanks for using the /feedback command. That additional information is useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething 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