Bash tool executed disallowed git checkout command without user approval
Resolved 💬 3 comments Opened Dec 4, 2025 by j-chikushi Closed Dec 4, 2025
Description
git checkout was executed without user approval despite not being in the allowed commands list.
Configuration
Allowed commands included only: git pull, git add, git mv
But git checkout -- [files] ran without prompting for approval.
Impact
This resulted in loss of uncommitted changes.
Expected Behavior
Commands not in the allowed list should prompt for user approval before execution.
Actual Behavior
The command executed immediately without approval prompt.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗