Feature request: Hook event for AskUserQuestion / interactive dialog responses
Feature Request
Problem
The UserPromptSubmit hook only fires when the user types in the main prompt input. When the user provides text via interactive dialogs — such as AskUserQuestion responses (e.g., rejecting a plan with feedback in plan mode, or answering a clarifying question) — no hook event fires.
This means plugins that capture user input (e.g., for a sidecar context pane showing recent prompts) miss a significant portion of user interactions.
Current behavior
- User types in main prompt →
UserPromptSubmitfires ✅ - User types text in
AskUserQuestiondialog (plan mode feedback, clarifying answers) → no hook fires ❌ - User selects an option in
AskUserQuestion→ no hook fires ❌
Desired behavior
A new hook event (e.g., UserQuestionResponse or UserInput) that fires whenever the user provides input through any interactive dialog, with the response text and context available in the hook's stdin JSON.
Alternatively, broadening UserPromptSubmit to fire for all user text input events, with a field indicating the input source (e.g., "source": "prompt" vs "source": "question_response").
Use case
I have a statusline plugin with a sidecar pane that shows recent prompts for session context. Plan mode feedback and question responses are meaningful user interactions that should appear in the prompt history, but currently they're invisible to the hooks system.
Environment
- Claude Code CLI (hooks v2)
- macOS / Kitty terminal
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗