diff --git a/.changeset/select-custom-question-answer.md b/.changeset/select-custom-question-answer.md new file mode 100644 index 00000000000..f48e8539361 --- /dev/null +++ b/.changeset/select-custom-question-answer.md @@ -0,0 +1,5 @@ +--- +"kilo-code": patch +--- + +Keep custom-answer selection in sync and show one submit action while entering custom text. diff --git a/packages/kilo-vscode/tests/unit/question-dock-contract.test.ts b/packages/kilo-vscode/tests/unit/question-dock-contract.test.ts index fb9b4ca761f..24337ca281b 100644 --- a/packages/kilo-vscode/tests/unit/question-dock-contract.test.ts +++ b/packages/kilo-vscode/tests/unit/question-dock-contract.test.ts @@ -55,7 +55,7 @@ describe("QuestionDock explicit submit contract", () => { expect(reset, "reject should restore the agent before sending the dismissal").toBeLessThan(sending) }) - it("keeps the footer Submit button wired to submit()", () => { - expect(source).toContain(' - @@ -474,34 +492,36 @@ export const QuestionDock: Component<{ request: QuestionRequest }> = (props) => -
- 0}> - - - selectTab(store.tab + 1)} - disabled={store.sending || (!confirm() && (store.answers[store.tab]?.length ?? 0) === 0)} - > - {last() && single() - ? language.t("ui.common.submit") - : last() - ? language.t("common.review") - : language.t("ui.common.next")} + +
+ 0}> + - } - > - - -
+
+ selectTab(store.tab + 1)} + disabled={store.sending || (!confirm() && (store.answers[store.tab]?.length ?? 0) === 0)} + > + {last() && single() + ? language.t("ui.common.submit") + : last() + ? language.t("common.review") + : language.t("ui.common.next")} + + } + > + + +
+