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
This commit is contained in:
Roo Code 2025-09-10 22:18:59 +00:00
parent 8fee3127ff
commit 26befa6dd0

View file

@ -599,7 +599,8 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
try {
console.log("queueMessage", text, images)
vscode.postMessage({ type: "queueMessage", text, images })
setInputValue("")
// Don't clear the input when queueing - let the user continue typing
// The input will be cleared when the message is actually sent
setSelectedImages([])
} catch (error) {
console.error(