Stop hook does not fire when awaiting AskUserQuestion response

Open 💬 1 comment Opened Jun 9, 2026 by fghbittencourt

Preflight Checklist

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

Problem Statement

Summary

The Stop hook does not fire while Claude is waiting for the user to answer an AskUserQuestion call, because AskUserQuestion happens mid-turn. This makes it impossible to trigger external scripts (e.g. notifications, blinking a physical button) at the right moment — before the user responds.

Expected behavior

A hook should fire when Claude is actively waiting for user input, regardless of whether it's waiting for a new turn (Stop) or waiting for an AskUserQuestion response.

Actual behavior

  • Stop fires only when a full turn ends and Claude returns control to the user's prompt.
  • AskUserQuestion is a mid-turn tool call, so Stop never fires while Claude is waiting for the answer.
  • PreToolUse with matcher AskUserQuestion does not work — the tool name is not exposed to matchers.

Steps to reproduce

  1. Configure a Stop hook that runs a shell command (e.g. curl -X POST localhost:37999/blink).
  2. Ask Claude something that triggers an AskUserQuestion call.
  3. Observe: the hook does not fire while the question is displayed. It only fires after the user answers and Claude finishes processing the response.

Proposed Solution

One of:

  • Fire the Stop hook (or a new dedicated hook like WaitingForInput) whenever Claude is blocked waiting for user input, including AskUserQuestion.
  • Expose AskUserQuestion as a hookable tool name so PreToolUse/PostToolUse matchers can target it.

Alternative Solutions

_No response_

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

I built a Stream Deck plugin that blinks a physical button when Claude needs my attention and focuses VS Code on click. It works well for normal turns via the Stop hook, but misses AskUserQuestion prompts entirely — which are often the most important moments to notify the user.

Additional Context

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗