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
BUG: PreToolUse hook 'ask' with permissionOverrides ignores the override and prompts anyway #1059
Bug description
When a PreToolUse hook returns decision: "ask" with a valid permissionOverrides array, the CLI completely ignores the override and prompts the user anyway.
Steps to reproduce
Create a PreToolUse hook for run_command.
Return a JSON response asking for permission with an exact override:
Expected behavior
The CLI should consume the permissionOverrides array, auto-approve the tool execution, and silently continue without prompting the user.
Actual behavior
The CLI ignores the permissionOverrides array entirely and renders the standard Approve/Deny UI prompt.
Environment
Component
Details
OS
macOS
Shell
zsh
Tool
run_command
Additional context
Returning decision: "allow" also fails to bypass the prompt for uncached commands, leaving no programmatic way to auto-approve commands without the --dangerously-skip-permissions flag.
changed the title [-]BUG: PreToolUse hook 'ask' with permissionOverrides hangs indefinitely[/-][+]BUG: PreToolUse hook 'ask' with permissionOverrides ignores the override and prompts anyway[/+]on Sep 19, 2026
Activity
[-]BUG: PreToolUse hook 'ask' with permissionOverrides hangs indefinitely[/-][+]BUG: PreToolUse hook 'ask' with permissionOverrides ignores the override and prompts anyway[/+]chandrashakherkamasani commentedon Sep 21, 2026
Duplicate of #1053