[BUG] AskUserQuestion (VS Code): "Submit answers" is silently disabled until every question tab is answered

Status Open
Reported on v2.1.220
Maintainer reply None cached
Activity 0 comments · opened Jul 27, 2026

Description

In the VS Code extension, an AskUserQuestion dialog with more than one question keeps the "Submit answers" button disabled until every question tab has an answer, but the UI gives no indication of that. The button looks like a normal enabled button and simply does not react to clicks or to the 1 / Enter shortcuts. Users read this as a frozen dialog.

Steps to Reproduce

  1. Trigger an AskUserQuestion dialog with 3 questions in the VS Code extension.
  2. Answer only the first question (any option, or "Other" + text).
  3. Click "Submit answers" or press 1 / Enter.

Expected Behavior

Either the button explains why it is inert (e.g. "Answer all 3 questions to submit", unanswered tabs visibly marked/styled as required), or the dialog submits with the answered subset.

Actual Behavior

Nothing happens. No tooltip, no message, no visual difference from an enabled button. The only recovery is interrupting the turn.

Source

webview/index.js in the extension bundle:

D = co(() => {
  if (!S) return !0;
  let X = n || e.inputs;
  if (!X?.questions || !X?.answers) return !1;
  return X.questions.every((P) => {
    let te = X.answers?.[P.question];
    return te && te.trim().length;
  });
}, [e.inputs, n, S]);
// ...
b("button", { disabled: a || !D, children: [..., "Submit answers"] })

The every(...) gate is reasonable; the missing part is any feedback about it. The existing tab chips do get an "answered" class, but nothing communicates that answering all of them is a requirement for submitting.

This compounds #76002 (Enter in the "Other" input never submits and swallows Escape): together, a user answering question 1 via "Other" has no working keyboard path and a dead button, with no way to tell the dialog is waiting on the other tabs.

Environment

  • OS: Ubuntu 24.04, GNOME, VS Code (snap), dark theme
  • Claude Code extension: anthropic.claude-code-2.1.220-linux-x64; CLI 2.1.220
  • Screen reader / accessibility features off

View original on GitHub ↗