diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index a002abf8cfb..f555fb39ec3 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -727,7 +727,21 @@ const ChatViewComponent: React.ForwardRefRenderFunction 0)) { + vscode.postMessage({ + type: "askResponse", + askResponse: "messageResponse", + text: trimmedInput, + images: images, + }) + // Clear input state after sending + setInputValue("") + setSelectedImages([]) + } else { + // If no message, just continue the command + vscode.postMessage({ type: "terminalOperation", terminalOperation: "continue" }) + } break }