Description
Notification hooks with permission_prompt and idle_prompt matchers never fire in the VS Code extension. Stop hooks work correctly.
Steps to Reproduce
- Add the following to
~/.claude/settings.json:
{
"hooks": {
"Notification": [
{
"matcher": "permission_prompt",
"hooks": [
{
"type": "command",
"command": "afplay /System/Library/Sounds/Glass.aiff &"
}
]
}
]
}
}
- Start Claude Code in the VS Code extension
- Ask Claude to perform an action that requires permission (e.g. run a bash command)
- Permission prompt appears but no hook fires — no sound plays
Expected Behavior
The Notification hook should fire when a permission prompt is shown, just as it does in the CLI.
Actual Behavior
The hook never fires. Verified by checking hook execution logs — only Stop hooks produce log entries. Zero Notification hook executions recorded across multiple attempts and VS Code reloads.
Environment
- macOS (Darwin 25.3.0)
- Claude Code VS Code extension
- Tested with both direct
afplay commands and CC Ring extension's hook script
Impact
There is currently no way to receive audio alerts when Claude Code is waiting for permission approval in VS Code. This leads to significant wasted development time when users switch to other tasks while Claude works, not realizing it's blocked on a permission prompt.
Description
Notification hooks with
permission_promptandidle_promptmatchers never fire in the VS Code extension. Stop hooks work correctly.Steps to Reproduce
~/.claude/settings.json:{ "hooks": { "Notification": [ { "matcher": "permission_prompt", "hooks": [ { "type": "command", "command": "afplay /System/Library/Sounds/Glass.aiff &" } ] } ] } }Expected Behavior
The Notification hook should fire when a permission prompt is shown, just as it does in the CLI.
Actual Behavior
The hook never fires. Verified by checking hook execution logs — only Stop hooks produce log entries. Zero Notification hook executions recorded across multiple attempts and VS Code reloads.
Environment
afplaycommands and CC Ring extension's hook scriptImpact
There is currently no way to receive audio alerts when Claude Code is waiting for permission approval in VS Code. This leads to significant wasted development time when users switch to other tasks while Claude works, not realizing it's blocked on a permission prompt.