mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
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:
parent
8fee3127ff
commit
26befa6dd0
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 - let the user continue typing
|
||||
// The input will be cleared when the message is actually sent
|
||||
setSelectedImages([])
|
||||
} catch (error) {
|
||||
console.error(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue