Model uses `git checkout` when asked to undo its recent change.
Resolved 💬 1 comment Opened Jan 15, 2026 by codereptile Closed Jan 15, 2026
What version of Codex is running?
codex-cli 0.80.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.2-codex xhigh
What platform is your computer?
_No response_
What terminal emulator and version are you using (if applicable)?
_No response_
What issue are you seeing?
Asked the model to review the PR, it made a bad fix, asked to revert that fix and it reverted the entire file. I've noticed that your models are extremely eager to use git checkout, without notifying the user that that might lead to permanent data loss, and in this particular case, it completely misunderstood me, yet out of the two possible options chose the much more dangerous one.
What steps can reproduce the bug?
Uploaded thread: 019bc355-9219-7c50-97f4-1696a9b4515c
What is the expected behavior?
A single edit reverting resent changes, not a 'nuke everything'
Additional information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗