Skip to content

Feature Request: Add notification hook support for AskUserQuestion events #13830

@ianaswanson

Description

@ianaswanson

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 requests
  • idle_prompt - Waiting 60+ seconds for input
  • elicitation_dialog - MCP tool elicitation dialogs
  • auth_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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions