GPT 5.2 keeps staging its changes
Resolved 💬 4 comments Opened Dec 21, 2025 by lukaszciastko Closed Mar 29, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
0.77.0
What subscription do you have?
Pro
Which model were you using?
gpt-5.2-codex
What platform is your computer?
Darwin 25.2.0 arm64 arm
What issue are you seeing?
Codex has recently started staging its changes and performing “cleanups” of files it didn’t modify. Consequently, when iterating over changes, it becomes challenging to discern which files were actually altered. Moreover, Codex continues to delete files it didn’t create, claiming to have “cleaned up” and identified untracked files. In the past, codex was never staging changes on its own.
What steps can reproduce the bug?
Use codex in a normal dev workflow, perhaps with --dangerously-bypass-approvals-and-sandbox.
What is the expected behavior?
_No response_
Additional information
_No response_
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I did some digging and I believe I found the root cause in
codex-rs/utils/git/src/apply.rs.Line 55 unconditionally uses the
--3wayflag:According to
man git-apply:This explains why changes applied by Codex are always staged. Removing
--3waywould solve the implicit staging behavior but might reduce the success rate of applying patches that have minor context mismatches.I ran into the same issue. Not sure which version caused it, so I’m going to roll back a few versions and see.
This bug report hasn't received any upvotes or additional posts in three months. Closing.