Feature Request: Add notification hook support for AskUserQuestion events
Feature Request
Summary
Add support for triggering notification hooks when Claude uses the AskUserQuestion tool to request user input.
Current Behavior
Notification hooks currently only trigger for these events:
permission_prompt- Tool permission requestsidle_prompt- Waiting 60+ seconds for inputelicitation_dialog- MCP tool elicitation dialogsauth_success- Authentication success
When Claude uses AskUserQuestion to ask interactive questions, no notification is triggered.
Requested Behavior
Add a new notification matcher (e.g., user_question or ask_user_question) that triggers when Claude calls the AskUserQuestion tool.
Use Case
Users working across multiple desktops/windows need notifications when Claude needs their input. Currently, interactive questions via AskUserQuestion don't trigger notifications, meaning users may not realize Claude is waiting for their response.
With notification hooks configured for macOS notifications (terminal-notifier, osascript, etc.), users would receive audible/visual alerts when Claude asks questions, improving the multi-tasking workflow.
Example Hook Configuration
\\\json\
{
"hooks": {
"Notification": [
{
"matcher": "user_question",
"hooks": [
{
"type": "command",
"command": "terminal-notifier -title 'Claude Code' -subtitle 'INPUT NEEDED' -message 'Claude has a question' -sound Ping"
}
]
}
]
}
}
\\
Impact
This would make the notification system more comprehensive and useful for users who rely on notifications to manage multiple terminal sessions.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗