Feature Request: PermissionApproval hook
Feature Request
Add a PermissionApproval hook that fires when the user approves a permission request, before the tool starts executing.
Use Case
I'm using hooks to update my tmux status bar to show Claude's state:
- PermissionRequest → Yellow status (Claude needs input)
- Stop → Green status (Claude is idle)
The problem: there's no way to clear the yellow status when I approve a permission. The current hooks are:
PreToolUse→ fires before permission checkPermissionRequest→ fires when permission neededPostToolUse→ fires after tool completes
For long-running commands (e.g., sleep 5), the status stays yellow for the entire execution even though I've already approved and Claude no longer needs my attention.
Proposed Solution
Add a PermissionApproval hook that fires immediately when the user clicks "Allow" or approves a permission request, before the tool starts executing.
Example config:
{
"hooks": {
"PermissionRequest": [
{
"hooks": [{ "type": "command", "command": "tmux-status.sh yellow" }]
}
],
"PermissionApproval": [
{
"hooks": [{ "type": "command", "command": "tmux-status.sh clear" }]
}
]
}
}
This would allow status indicators to accurately reflect when Claude actually needs user attention vs when a tool is just running.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗