Skip to content

approval white list or single git {add/commit} approvals #4665

Closed

Description

@o1lo01ol1o

What feature would you like to see?

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

Activity

  1. github-actions commented on Oct 3, 2025

    @github-actions
    Contributor

    Potential duplicates detected:

    Powered by Codex Action

  2. etraut-openai commented on Dec 23, 2025

    @etraut-openai
    Contributor

    We have added an experimental "execution policy rules" feature. You can read about it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsandboxIssues related to permissions or sandboxing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions