AskUserQuestion: empty "Other" input cancels the whole dialog, discarding already-answered questions

Status Open
Maintainer reply None cached
Activity 1 comment · opened Jul 16, 2026

Environment

  • Claude Code CLI (terminal), current release
  • macOS

What happens

When the model calls AskUserQuestion with several questions, I answer the first one, and then on a later question I pick "Other" and press Enter with the input box empty, the whole dialog cancels. The answers I already submitted are discarded and the model never sees them, so it has to re-ask everything from scratch.

This comes up constantly in practice: the answer I give to the first question often changes the premise of the remaining ones, so there is nothing sensible left to answer. Right now the only way to get my first answer through is to type filler into "Other" for every remaining question, which then reads to the model like a real answer.

Steps to reproduce

  1. Have the model call AskUserQuestion with 2+ questions.
  2. Answer question 1 normally.
  3. On question 2, select "Other" and press Enter with the text field empty.
  4. The dialog closes and the model receives nothing, including the answer from step 2.

Expected

Empty "Other" input should skip that question (or move to submit on the last one), not cancel the dialog. More generally: partial answers should be submittable, with the unanswered questions reported as skipped, so already-typed answers are never lost.

Escape as full-cancel is fine. It's specifically empty-Enter acting as full-cancel that eats submitted answers.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗