You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As others have noticed, the model has a tendency to revert uncommitted changes to "clean" the project when working on a task.
This makes it extremely frustrating to work in pair with codex, for example making small edits to a file while it's working on a feature, the odds are high those changes will be reverted.
Adding instructions in AGENTS.md do not fix it reliably.
A simple workaround until the model behaviour is improved would be to be able to blacklist of commands to always request approval (or even fully block without requesting approval), regardless of the current approval mode (I still want to allow it to make edits unsupervised).
In my case I would like to completely block the model's access to git to not allow it to see other changes being made.
Something like:
shell_blacklist = ["git*"]
More generally this seems like an essential safety feature.
Activity
github-actions commentedon Oct 13, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
matssk commentedon Oct 13, 2025
Related #3960
etraut-openai commentedon Dec 18, 2025
We've recently added support for "execution rules" — a way to configure which commands to allow or disallow. For details, refer to this documentation.