From 5c044af576b155756a7f9df9d38899c6bde15df3 Mon Sep 17 00:00:00 2001 From: Marius Date: Tue, 24 Mar 2026 09:59:02 +0100 Subject: [PATCH] fix(vscode): auto-submit custom question answer on Enter and make collapsed dock clickable (#7500) Single-select questions now submit immediately when pressing Enter after typing a custom answer. Clicking anywhere on the collapsed question dock header expands it, not just the chevron button. --- .../webview-ui/src/components/chat/QuestionDock.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/kilo-vscode/webview-ui/src/components/chat/QuestionDock.tsx b/packages/kilo-vscode/webview-ui/src/components/chat/QuestionDock.tsx index cdf4bce13dd..0c581bb4b0d 100644 --- a/packages/kilo-vscode/webview-ui/src/components/chat/QuestionDock.tsx +++ b/packages/kilo-vscode/webview-ui/src/components/chat/QuestionDock.tsx @@ -173,6 +173,7 @@ export const QuestionDock: Component<{ request: QuestionRequest }> = (props) => pick(value, true) setStore("editing", false) + if (single()) submit() } const toggleCollapse = () => setStore("collapsed", !store.collapsed) @@ -217,14 +218,14 @@ export const QuestionDock: Component<{ request: QuestionRequest }> = (props) => onKeyDown={onRoot} > {/* Single unified header row — always visible */} -
+
{summary()}
{question()?.question}
-
+
e.stopPropagation()}>