AskUserQuestion tool auto-completes with empty answers without showing UI
Bug Description
The AskUserQuestion tool returns immediately with empty answers without displaying the question UI to the user. The tool appears to auto-complete without any user interaction.
Environment
- OS: WSL2 (Ubuntu on Windows)
- Claude Code Version: Latest (as of Nov 2025)
- Terminal: Windows Terminal / WSL bash
Symptoms
- Claude calls
AskUserQuestionwith properly formatted questions - Response returns immediately:
"User has answered your questions: ." - The answers field is empty (note the period after colon with no content)
- User never sees the question chips/options on screen
Expected Behavior
The question UI should appear with selectable options, wait for user input, then return the selected answers.
Actual Behavior
The tool returns instantly with an empty response as if the user had already answered (but with no answers).
Reproduction Steps
- Start a Claude Code session
- Have Claude use the
AskUserQuestiontool with any question - Observe: No question UI appears, empty response returned immediately
Investigation Notes
I investigated whether custom hooks in ~/.claude/settings.json could be causing this issue:
- Hooks use
PreToolUsewithmatcher: "*"to intercept all tools AskUserQuestionhas no registered handler, so it passes through withpermissionDecision: "allow"- Hooks only do allow/deny decisions before execution - they cannot modify response content or suppress UI
Conclusion: Hooks are not the cause. This appears to be a Claude Code internal bug.
Possible Causes
- Plan mode may interfere with AskUserQuestion UI rendering
- Race condition where response returns before UI displays
- WSL/terminal rendering issue with the chip UI component
Additional Context
This issue has persisted for several months across multiple Claude Code versions. It occurs both in and out of Plan mode.
Settings Configuration
{
"hooks": {
"PreToolUse": [
{
"matcher": "*",
"hooks": [{"type": "command", "command": "/root/.claude/hooks/user-prompt-submit.sh"}]
}
]
}
}
Even with hooks configured, AskUserQuestion should work since it passes through with "allow" decision.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗