AskUserQuestion: empty "Other" input cancels the whole dialog, discarding already-answered questions
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
- Have the model call AskUserQuestion with 2+ questions.
- Answer question 1 normally.
- On question 2, select "Other" and press Enter with the text field empty.
- 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.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗