[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

  1. Configure a Notification hook in settings.json with matcher: "*"
  2. Start Claude Code in Plan Mode (/plan)
  3. Ask a question that triggers AskUserQuestion
  4. Expected: Toast notification appears
  5. Actual: No notification appears (but Stop hook 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", and matcher: "elicitation_dialog" - none work in Plan Mode
  • The PowerShell notification script works correctly (verified by Stop hook)
  • This issue only affects Plan Mode

Suggestion

Either:

  1. Support Notification hooks in Plan Mode, or
  2. Document that Notification hooks have different behavior in Plan Mode

Thank you for investigating this issue.

View original on GitHub ↗

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