[Bug] Notification hook not triggered in Plan Mode when AskUserQuestion is called
Resolved 💬 3 comments Opened Apr 2, 2026 by zgshe Closed Apr 6, 2026
Bug Description
Environment: Claude Code 2.1.84, Windows 11 Pro
Issue: The Notification hook is not triggered in Plan Mode when AskUserQuestion is called to prompt user for input. However, the Stop hook works correctly and shows a Windows toast notification when a task is completed.
Expected behavior: When Claude Code is in Plan Mode and calls AskUserQuestion, a Windows toast notification should appear alerting the user that input is needed.
Steps to Reproduce
- Configure a Notification hook in
settings.jsonwithmatcher: "*" - Start Claude Code in Plan Mode (
/plan) - Ask a question that triggers
AskUserQuestion - Expected: Toast notification appears
- Actual: No notification appears (but
Stophook notifications work normally)
Configuration
Stop hook works correctly:
"Stop": [
{
"matcher": "*",
"hooks": [{
"type": "command",
"command": "powershell -ExecutionPolicy Bypass -File \"C:\\Users\\Administrator\\.claude\\notify-toast.ps1\"",
"shell": "powershell",
"timeout": 30
}]
}
]
Additional Context
- Tested with
matcher: "*",matcher: "idle_prompt", andmatcher: "elicitation_dialog"- none work in Plan Mode - The PowerShell notification script works correctly (verified by
Stophook) - This issue only affects Plan Mode
Suggestion
Either:
- Support Notification hooks in Plan Mode, or
- Document that Notification hooks have different behavior in Plan Mode
Thank you for investigating this issue.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗