Notification hook doesn't fire in VS Code extension when AskUserQuestion is used
Resolved 💬 2 comments Opened Jan 22, 2026 by HoneyPercent Closed Jan 23, 2026
Description
The Notification hook configured in settings.json does not fire when Claude uses AskUserQuestion in the VS Code extension, even though the UI prompt appears correctly.
Steps to Reproduce
- Configure a Notification hook in
~/.claude/settings.json:
"hooks": {
"Notification": [
{
"hooks": [
{
"type": "command",
"command": "powershell.exe -c \"(New-Object Media.SoundPlayer 'C:\Windows\Media\chimes.wav').PlaySync()\""
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "powershell.exe -c \"(New-Object Media.SoundPlayer 'C:\Windows\Media\tada.wav').PlaySync()\""
}
]
}
]
}
- Use Claude Code in VS Code extension
- Have Claude use the
AskUserQuestiontool (which should trigger Notification) - Observe that the quick pick UI appears but the Notification hook sound does not play
Expected Behavior
The Notification hook should fire and play chimes.wav when AskUserQuestion is used.
Actual Behavior
- The
Stophook fires correctly (tada.wav plays when Claude finishes responding) - The
Notificationhook does NOT fire (chimes.wav never plays) - The AskUserQuestion UI does appear correctly in VS Code
Environment
- Platform: Windows 11
- Claude Code: VS Code extension
- The same hook command works when run directly via Bash
Notes
The hook command itself works fine when executed manually. This appears to be specific to the Notification event not being emitted in the VS Code extension flow.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗