Skip to content

[FEATURE] Add hook for when Claude is waiting for user input #13024

@currenthandle

Description

@currenthandle

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

When Claude stops to wait for user input (like the AskUserQuestion interactive prompt), there's no configurable hook that fires. I want to play an audio chime whenever Claude needs my attention so I know to check back on it.

Currently:

  • Stop hook only fires when Claude finishes completely, not when waiting for input
  • Notification hook with idle_prompt only fires after 60+ seconds idle (too slow for immediate feedback)

This means if Claude asks me a question via the interactive UI picker, I have no way to get notified. Claude just sits there waiting while I'm doing something else, not knowing it needs my input.

Proposed Solution

Either:

  1. Add a new hook like WaitingForInput or Yield that fires whenever Claude yields control back to the user (including AskUserQuestion prompts, permission dialogs, etc.)

Or:
2. Expand the Stop hook to also fire when Claude is waiting for input, not just when completely finished.

The hook should fire immediately when Claude pauses

Alternative Solutions

I've tried:

  • Stop hook - doesn't fire when waiting for input, only on complete finish
  • Notification hook with permission_prompt matcher - only covers permission dialogs, not AskUserQuestion
  • Notification hook with idle_prompt - 60 second delay is too long for immediate feedback

There's no current workaround that covers the AskUserQuestion interactive prompt case.

Priority

High - Significant impact on productivity

Feature Category

Configuration and settings

Use Case Example

  1. I ask Claude to help me build a feature
  2. Claude uses AskUserQuestion to show me a multi-select UI asking for clarification
  3. I've tabbed away to another window while waiting
  4. Claude sits there waiting for my input - I have no idea it needs me
  5. With this feature, my configured hook would play a chime immediately when the question appears
  6. I'd hear the chime, switch back, answer the question, and Claude continues working

Additional Context

The AskUserQuestion tool and similar tools creates an interactive UI prompt but doesn't trigger any hookable event. This seems like an oversight since other "waiting" scenarios (permissions, idle) do have notification support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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