Codex often overwrites recent code.

Resolved 💬 1 comment Opened May 25, 2026 by plmrry Closed May 25, 2026

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

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗