Skip to content

[BUG] AskUserQuestion tool doesn't work in skill until plan mode toggled to at least one #9846

Closed

Description

@ChrisTowles

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When building a command and directing it to use AskUserQuestion, it fails to do so. It can only seem to if you first toggle thought plan mode first.

Image showing it just saying User answered Claude's questions: without doing so.

Image

What Should Happen?

I'd like to be able to use the AskUserQuestion tool at any point.

Error Messages/Logs

Steps to Reproduce

create a command with such as:

---
description: test using user question tool
---

## Your task

1. generate 3 dad jokes
2. **Use AskUserQuestion tool** to ask the user to pick the best one

restart claude code, directly call that command.

it'll say User answered Claude's questions: without doing so.

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.0.22

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

Workaround

Some times it seems if you restart CC then then toggle through plan mode first, send a message. It seems to fix the issue and successfully call AskUserQuestion in any mode. But that was inconstant in my tests.

Activity

  1. added
    bug
    on Oct 18, 2025
  2. added
    has repro
    platform:linux
    on Oct 18, 2025
  3. BeaconSage commented on Oct 18, 2025

    @BeaconSage

    Same problem with me but different scene:

    Scenario: use --dangerously-skip-permissions

    WHEN use AskUserQuestion tools
    THEN AskUserQuestion not work:

    ⏺ User answered Claude's questions:
      ⎿
    

    just like above

    Scenario: not use --dangerously-skip-permissions

    WHEN use AskUserQuestion tools
    THEN AskUserQuestion work well.

  4. LukeFost commented on Oct 19, 2025

    @LukeFost

    Can confirm this issue on macOS with Claude Code
    v2.0.21
    .

    When using --dangerously-skip-permissions mode, the AskUserQuestion tool:

    • Returns immediately with empty answers
    • Shows "User answered Claude's questions: ." with no actual response
    • Does not display any UI to the user
    • Auto-completes without user interaction
  5. self-assigned this
    on Oct 19, 2025
  6. ThariqS commented on Oct 19, 2025

    @ThariqS
    Contributor

    ahh thanks for pointing this out, will fix

  7. Czxck001 commented on Oct 22, 2025

    @Czxck001

    @ThariqS Any update on this? Been bothered for a while.

  8. ThariqS commented on Oct 28, 2025

    @ThariqS
    Contributor

    Fixed!

  9. github-actions commented on Nov 5, 2025

    @github-actions

    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.

  10. locked as resolved and limited conversation to collaborators on Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:corearea:toolsbughas reproplatform:linux

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions