diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index 9adf603ee4..1798d699a5 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -638,20 +638,17 @@ const ChatViewComponent: React.ForwardRefRenderFunction 0)) { - vscode.postMessage({ - type: "askResponse", - askResponse: "yesButtonClicked", - text: trimmedInput, - images: images, - }) - // Clear input state after sending - setInputValue("") - setSelectedImages([]) - } else { - vscode.postMessage({ type: "askResponse", askResponse: "yesButtonClicked" }) - } + // Always send the message with text/images if they exist + // This ensures user feedback is sent when resuming a task + vscode.postMessage({ + type: "askResponse", + askResponse: "yesButtonClicked", + text: trimmedInput || undefined, + images: images && images.length > 0 ? images : undefined, + }) + // Clear input state after sending + setInputValue("") + setSelectedImages([]) break case "completion_result": case "resume_completed_task":