[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)
7 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Same issue here on v2.1.62 (macOS, Opus). Was working before this version. AskUserQuestion in custom skills returns immediately with empty/garbled answers — no UI shown to user.
Same issue also on my side (windows, v2.1.63)
Got the same issue
Same issue
This should be fixed on
2.1.69.This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.