codex - 💡(How to fix) Fix Codex often overwrites recent code.

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

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

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING