Skip to content

Commit 26befa6

Browse files
committed
fix: preserve chat input when queueing messages
- Modified ChatView.tsx to not clear input field when queueing messages - Only clear selected images when queueing, preserving typed text - Input will be cleared when message is actually sent, not when queued - Fixes issue where unsent text was wiped when queued messages were sent Fixes #7861
1 parent 8fee312 commit 26befa6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,8 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
599599
try {
600600
console.log("queueMessage", text, images)
601601
vscode.postMessage({ type: "queueMessage", text, images })
602-
setInputValue("")
602+
// Don't clear the input when queueing - let the user continue typing
603+
// The input will be cleared when the message is actually sent
603604
setSelectedImages([])
604605
} catch (error) {
605606
console.error(

0 commit comments

Comments
 (0)