claude-code - 💡(How to fix) Fix [BUG] AskUserQuestion: partial submit discards all already-provided answers [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#53249Fetched 2026-04-26 05:20:34
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
4
Author
Timeline (top)
labeled ×4commented ×1subscribed ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

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 AskUserQuestion bundles multiple questions in a single call and the user answers some but not all of them, all answers are discarded — the tool result returns is_error: true with no answers payload. The model proceeds as if the user never responded, and any free-text content the user typed into the answered question is silently lost.

Same root-cause as #33511 (closed as not planned), different trigger: there it's the "Chat about this" button; here it's simply not interacting with one of the bundled questions before submitting.

What Should Happen?

Submit should return the partial answer set; unanswered questions are flagged explicitly (e.g. answers: {Q1: "..."}, unanswered: ["Q2"]), not erased. is_error: true should be reserved for genuine cancellation (Esc-Esc with zero interaction).

Error Messages/Logs

Steps to Reproduce

  1. Model calls AskUserQuestion with two questions:

    • Q1: "Which background-job library — Celery, ARQ, or APScheduler?" (Other → free-text)
    • Q2: "Redis or RabbitMQ as the broker?" → Redis / RabbitMQ
  2. User picks "Other" on Q1 and types a detailed paragraph explaining that the service doesn't need a queue at all — FastAPI BackgroundTasks covers the current load. Q2 is now moot, so user submits without picking either option.

  3. Tool result returned to the model: is_error: true, no answers. The Q1 paragraph is gone — neither the model nor the user can recover it.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

v2.1.119

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PyCharm terminal

Additional Information

No response

extent analysis

TL;DR

The issue can be addressed by modifying the AskUserQuestion function to return partial answers and flag unanswered questions explicitly.

Guidance

  • Review the AskUserQuestion function to ensure it handles partial responses correctly and doesn't discard answers when some questions are left unanswered.
  • Verify that the function returns a payload with answers and unanswered keys, as expected, when the user submits a partial response.
  • Check the error handling logic to reserve is_error: true for genuine cancellation events, such as Esc-Esc with zero interaction.
  • Consider adding input validation to handle cases where the user submits without answering all questions.

Example

No code snippet is provided due to lack of specific implementation details.

Notes

The issue seems to be related to the AskUserQuestion function's handling of partial responses. Without more information about the function's implementation, it's difficult to provide a more specific solution.

Recommendation

Apply a workaround by modifying the AskUserQuestion function to handle partial responses correctly, as this is likely to be a more straightforward solution than waiting for a potential fix in a future version.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING