-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Description
What version of Codex is running?
codex-cli 0.60.1
What subscription do you have?
Plus
Which model were you using?
gpt-5.1-codex-max (medium)
What platform is your computer?
Windows 11
What issue are you seeing?
The model at times deletes entire files instead of making localized edits. This behaviour is dangerous and sometimes the model gets lost/confused and has to revert files from git or rebuild the deleted files from previous context. This consumes a lot of tokens and is very slow and dangerous. The model sometimes says "I accidentally deleted the file".
What steps can reproduce the bug?
Is not easy to create initial conditions since depends on many variables. I recommend model observation on real engineering tasks.
What is the expected behavior?
Make several smaller minor edits, instead of attempting to rewrite whole files at once. Likely would save on tokens, the changes are easier to track by a human engineer and less dangerous (if not using git). The model sometimes in front of accidental delete rebuilds from context instead of making a git checkout from head. The git checkout would be the faster and cheaper way to perform the correction in front of that failure (context inspection would be useful to determine if is the proper corrective step).
Additional information
No response