mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
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:
parent
8fee3127ff
commit
e84008ac7a
1 changed files with 2 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue