[BUG] AskUserQuestion silently skipped when explicitly listed in skill's allowed-tools

Status Fixed / completed
Reported on v2.1.63
Maintainer reply ✓ Yes — blois
Activity 4 comments · opened Mar 3, 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 this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When AskUserQuestion is added to the allowed-tools list in a skill's SKILL.md frontmatter, the tool call is silently skipped — the question is never rendered to the user. The UI briefly shows a blank interaction entry like:

● User answered Claude's questions:
⎿ (empty)

...and the skill immediately continues execution without waiting for any user input.

What Should Happen?

Listing AskUserQuestion in allowed-tools should either:

  1. Work correctly
  2. Emit an explicit warning that AskUserQuestion is not compatible with allowed-tools

It should not silently swallow the interaction.

Error Messages/Logs

No error messages are produced. The only visible symptom is the empty interaction entry in the UI.

Steps to Reproduce

  1. Create a skill at .claude/skills/test-skill/SKILL.md with AskUserQuestion in allowed-tools:

name: test-skill
description: Reproduces the AskUserQuestion bug
allowed-tools: AskUserQuestion

Use AskUserQuestion with:

  • Question: "Which option do you choose?"
  • Options: Option A, Option B, Option C
  1. Run /test-skill in Claude Code.
  2. Observe: the question is never shown; a blank entry appears and execution moves on.
  3. Now remove AskUserQuestion from allowed-tools (leave the field empty or omit it entirely).
  4. Run /test-skill again.
  5. Observe: the question renders correctly and the user can select an answer.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.63 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗

4 Comments

github-actions[bot] · 7 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/29962
  2. https://github.com/anthropics/claude-code/issues/29955
  3. https://github.com/anthropics/claude-code/issues/29774

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

blois collaborator · 7 months ago

This should be fixed on 2.1.69.

dicksontsai collaborator · 7 months ago

Thanks for the clean minimal repro — this turned out to be a one-release regression.

Fixed in v2.1.64. The bug was introduced in v2.1.63 (one day earlier) by an internal change that added a pre-classifier allow-rule check in the permission pipeline. That check ran before the guard that keeps interactive tools like AskUserQuestion in the prompt flow — so listing AskUserQuestion in allowed-tools caused it to match an auto-allow rule and skip the question UI entirely (the question UI is the permission dialog for this tool).

Upgrading to v2.1.64 or later resolves it. You can keep AskUserQuestion in allowed-tools — it works correctly now.

Related: #30360 is the same root cause.

github-actions[bot] · 7 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.