fix: preserve chat input when processing queued messages

- Modified handleSendMessage to not clear input value when queueing
- Only clear selected images when queueing a message
- Input will be cleared when message is actually sent, not when queued
- Fixes #7861 where unsent text was lost when queued messages were processed
This commit is contained in:
Roo Code 2025-09-10 21:56:23 +00:00
parent 8fee3127ff
commit e84008ac7a

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 - user may be typing more
// The input will be cleared when the message is actually sent
setSelectedImages([])
} catch (error) {
console.error(