fix(vscode): hide duplicate preview text while editing custom question answer (#9129)

The question tool's custom answer option showed the user's input twice — once as a preview description inside the option button, and again in the input field below. Hide the preview while the input form is open so only the live input is visible.
This commit is contained in:
Marius
2026-04-20 09:30:48 +02:00
committed by GitHub
parent 61ec925c50
commit 60709fd015
2 changed files with 10 additions and 3 deletions
@@ -0,0 +1,5 @@
---
"kilo-code": patch
---
Fix duplicate text shown when typing a custom answer in the question tool. The preview text above the input field is now hidden while editing, so only the input value is visible.
@@ -370,9 +370,11 @@ export const QuestionDock: Component<{ request: QuestionRequest }> = (props) =>
</span>
<span data-slot="question-option-main">
<span data-slot="option-label">{language.t("ui.messagePart.option.typeOwnAnswer")}</span>
<span data-slot="option-description" data-placeholder={!input()}>
{input() || language.t("ui.question.custom.placeholder")}
</span>
<Show when={!store.editing}>
<span data-slot="option-description" data-placeholder={!input()}>
{input() || language.t("ui.question.custom.placeholder")}
</span>
</Show>
</span>
</button>
<Show when={store.editing}>