[BUG] AskUserQuestion auto-selects without waiting for user input in custom commands/skills

Status Fixed / completed
Reported on v2.1.63
Maintainer reply ✓ Yes — blois
Activity 7 comments · opened Mar 1, 2026 · closed Mar 5, 2026
💡 Likely answer: A maintainer (blois, collaborator) responded on this thread — see the highlighted reply below.

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

  1. Create a custom command (skill) that calls AskUserQuestion as its first interaction
  2. Invoke the skill via /skill-name with arguments
  3. 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)

View original on GitHub ↗

7 Comments

github-actions[bot] · 6 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/29547
  2. https://github.com/anthropics/claude-code/issues/29674
  3. https://github.com/anthropics/claude-code/issues/29690

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

CodeWrap · 6 months ago

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.

Filivignaga · 6 months ago

Same issue also on my side (windows, v2.1.63)

michaeldmoser · 6 months ago

Got the same issue

cpflow · 6 months ago

Same issue

blois collaborator · 5 months ago

This should be fixed on 2.1.69.

github-actions[bot] · 5 months ago

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.