[BUG] AskUserQuestion auto-selects without waiting for user input in custom commands/skills
Preflight Checklist
- [x] I have searched existing issues and found #10267 (closed due to inactivity, locked)
- [x] This is a single bug report
- [x] I am using the latest version of Claude Code
What's Wrong?
When AskUserQuestion is called from within a custom command (skill), the question is not displayed to the user and the tool returns immediately with an empty or auto-filled answer. The AI then proceeds as if the user answered, skipping user interaction entirely.
This was previously reported in #10267 (v2.0.26) and #20006 (v2.0.27), both closed due to inactivity. The bug still persists in v2.1.63.
Observed behavior
In a single session:
| # | Context | Result |
|---|---------|--------|
| 1-3 | AskUserQuestion called right after /skill-name invocation | Not displayed, returned empty answer, auto-proceeded |
| 4-6 | AskUserQuestion called after user interrupted the flow | Displayed correctly, user could interact normally |
What Should Happen?
AskUserQuestion should always display to the user and wait for input, regardless of whether it's called from a custom command/skill or directly.
Steps to Reproduce
- Create a custom command (skill) that calls AskUserQuestion as its first interaction
- Invoke the skill via
/skill-namewith arguments - AskUserQuestion is skipped — no UI shown, empty answer returned
Claude Model
Opus
Is this a regression?
No, this never worked (reported since v2.0.26)
Claude Code Version
2.1.63
Platform
Anthropic API
Operating System
macOS (Darwin 24.5.0)
Terminal/Shell
bash (Terminal.app)
Additional Information
Related closed issues:
- #10267 — Original report (v2.0.26, closed due to inactivity)
- #20006 — Duplicate of #10267 (v2.0.27, auto-closed)
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗