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

  1. 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()\""
        }
      ]
    }
  ]
}
  1. Use Claude Code in VS Code extension
  2. Have Claude use the AskUserQuestion tool (which should trigger Notification)
  3. 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 Stop hook fires correctly (tada.wav plays when Claude finishes responding)
  • The Notification hook 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.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗