diff --git a/packages/kilo-vscode/webview-ui/src/components/chat/PromptInput.tsx b/packages/kilo-vscode/webview-ui/src/components/chat/PromptInput.tsx index fbdca63beab..c0417d3fa0d 100644 --- a/packages/kilo-vscode/webview-ui/src/components/chat/PromptInput.tsx +++ b/packages/kilo-vscode/webview-ui/src/components/chat/PromptInput.tsx @@ -39,6 +39,7 @@ export const PromptInput: Component = () => { let textareaRef: HTMLTextAreaElement | undefined let highlightRef: HTMLDivElement | undefined + let ghostRef: HTMLDivElement | undefined let dropdownRef: HTMLDivElement | undefined let debounceTimer: ReturnType | undefined let requestCounter = 0 @@ -158,6 +159,9 @@ export const PromptInput: Component = () => { if (highlightRef && textareaRef) { highlightRef.scrollTop = textareaRef.scrollTop } + if (ghostRef && textareaRef) { + ghostRef.scrollTop = textareaRef.scrollTop + } } const adjustHeight = () => { @@ -316,10 +320,13 @@ export const PromptInput: Component = () => { )} - - {ghostText()} - + + +