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
{{ message }}
Repository navigation
approval white list or single git {add/commit} approvals #4665
Codex needs a smarter way to handle approvals. I've had to spend way too long repeatedly approving requests to add and commit changes to git. When I approve "git commit {foo}" this should hold for "git commit {bar}". Same with git add, git branch, git checkout, git diff, git status, git push, etc. Only for --force , git reset, git delete, git rm, etc should multiple approvals be required.
This could be implemented with a whitelist of regexps or similar.
FWIW, yolo mode won't work, i've already had codex try to rm -rf .git twice today.
Are you interested in implementing this feature?
No response
Additional information
No response
Reacted by Andrés Zsögön, Lei and Ciro Santilli (三西猴) OurBigBook.com sponsor me: cirosantilli.com/sponsor, opinions my own 2020冠状病毒审查 ,2020郝海东 ,2018新疆改造中心,1989六四事件,1999法轮功 ,2019 996.ICU, 2018包子露宪,2015 709大抓捕,2015巴拿马文件 邓家贵,2017低端人口,2008西藏骚乱<script>alert(1)</script>
Activity
github-actions commentedon Oct 3, 2025
Potential duplicates detected:
Powered by Codex Action
etraut-openai commentedon Dec 23, 2025
We have added an experimental "execution policy rules" feature. You can read about it here.