Cleanup step used over-broad workspace move and dismantled repository boundaries
Resolved 💬 2 comments Opened Apr 2, 2026 by j32097072 Closed Apr 2, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
0.118.0
What subscription do you have?
api call
Which model were you using?
gpt-4o-mini
What platform is your computer?
_No response_
What terminal emulator and version are you using (if applicable)?
WSL2 (Ubuntu 22.04.5 LTS)
What issue are you seeing?
During cleanup, Codex executed an overbroad workspace-level move operation that treated repository content as disposable intermediate files, causing large-scale boundary overreach and repository structure damage.
What steps can reproduce the bug?
- Open a repository-backed workspace.
- Ask Codex CLI to perform the requested edit, repair, or cleanup workflow reflected by this report.
- Observe whether it reproduces the failure described above.
What is the expected behavior?
Codex CLI should either apply a valid change or fail cleanly.
It should not corrupt repository state, write invalid syntax, or perform over-broad filesystem actions.
Additional information
Attached full execution traces from the original run directory
["unexpected file changes: ['.editorconfig', '.gitignore', '.pre-commit-config.yaml', '.readthedocs.yaml', 'CHANGES.rst', 'FETCH_HEAD', 'HEAD', 'LICENSE.txt', 'README', 'README.md']"]
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Thanks for the bug report. We'll share the feedback with the team responsible for training our codex models. If you see other model behavior that you'd like to report, please use the
/feedbackcommand. That will provide us with additional details including logs and conversation text.