fix(agents): ask AskUserQuestion forms one question at a time (#7396)

claude-agent-acp now sends AskUserQuestion as an ACP form (a choice field per question, each followed by a text field for a typed answer), and OMP's ask tool sends the same shape. They were shown as a plain form with every question stacked above the composer, at up to half the window, which in a short Agents panel left the conversation no room to scroll.

Such forms are now shown as the question card in the conversation, one question at a time with Previous/Next, option descriptions and previews; the answers are turned back into the form's values (picked options as the choice, typed text in its companion field; Skip declines). Other forms stay forms, and a long one waiting above the composer now leaves the conversation a share of the panel and scrolls within itself.

Fixes #7359
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-12-02 13:36:43 +08:00
1 джерело 6bd2d5f843
коміт de41651a5e
5 files changed
+349 -4

No files matched your search

+5
Переглянути файл
@@ -1764,6 +1764,11 @@
.fitWidth .questionCardPinned {
max-width: none;
}
/* In a panel shorter than the window, half the window would leave the conversation no room: it
keeps a share of the panel, and the card scrolls in what is left (#7359). */
.conversation:has(.questionCardPinned) .streamArea {
min-height: min(35%, 200px);
}
.questionTabCheck {
flex: none;
color: var(--accent);