From fb59cf9e9d824b94938b91be82b3ad8afc667823 Mon Sep 17 00:00:00 2001 From: Daniel Riccio Date: Thu, 31 Jul 2025 10:28:05 -0500 Subject: [PATCH] fix: restore message sending when clicking save button Reverts the unintended side effect from PR #6222 by restoring the original button click handlers that pass inputValue and selectedImages as parameters to handlePrimaryButtonClick and handleSecondaryButtonClick. This ensures messages are properly sent when clicking the save button. --- webview-ui/src/components/chat/ChatView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index bc9c36a6c2e..1fe93eb4700 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -1912,7 +1912,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction handlePrimaryButtonClick()}> + onClick={() => handlePrimaryButtonClick(inputValue, selectedImages)}> {primaryButtonText} @@ -1934,7 +1934,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction handleSecondaryButtonClick()}> + onClick={() => handleSecondaryButtonClick(inputValue, selectedImages)}> {isStreaming ? t("chat:cancel.title") : secondaryButtonText}