Skip to content

Commit 60709fd

Browse files
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.
1 parent 61ec925 commit 60709fd

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"kilo-code": patch
3+
---
4+
5+
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.

packages/kilo-vscode/webview-ui/src/components/chat/QuestionDock.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,11 @@ export const QuestionDock: Component<{ request: QuestionRequest }> = (props) =>
370370
</span>
371371
<span data-slot="question-option-main">
372372
<span data-slot="option-label">{language.t("ui.messagePart.option.typeOwnAnswer")}</span>
373-
<span data-slot="option-description" data-placeholder={!input()}>
374-
{input() || language.t("ui.question.custom.placeholder")}
375-
</span>
373+
<Show when={!store.editing}>
374+
<span data-slot="option-description" data-placeholder={!input()}>
375+
{input() || language.t("ui.question.custom.placeholder")}
376+
</span>
377+
</Show>
376378
</span>
377379
</button>
378380
<Show when={store.editing}>

0 commit comments

Comments
 (0)