BUG: GPT5-Codex undos staged changes

Resolved 💬 1 comment Opened Sep 16, 2025 by guidedways Closed Nov 11, 2025

What version of Codex is running?

0.36.0

Which model were you using?

GPT5-Codex high

What platform is your computer?

macOS

What steps can reproduce the bug?

  • Codex makes changes
  • I then go around and stage some of them, making minor tweaks
  • I tell codex I've corrected some mistakes and ask it to perform another sub-task
  • Codex REMOVES the staged changes and undos all of my changes and replaces them with whatever it seems _it_ remembers when it made changes earlier

What is the expected behavior?

It should leave git alone! Codex was never asked to manage git, commits, branches or anything to do with git in general. It should never touch staged changes.

What do you see instead?

Hours of work undone.

Additional information

_No response_

View original on GitHub ↗

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