Skip to content

Commit 74672fa

Browse files
authored
fix: restore message sending when clicking save button (#6487)
1 parent de359a4 commit 74672fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,7 +1912,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
19121912
appearance="primary"
19131913
disabled={!enableButtons}
19141914
className={secondaryButtonText ? "flex-1 mr-[6px]" : "flex-[2] mr-0"}
1915-
onClick={() => handlePrimaryButtonClick()}>
1915+
onClick={() => handlePrimaryButtonClick(inputValue, selectedImages)}>
19161916
{primaryButtonText}
19171917
</VSCodeButton>
19181918
</StandardTooltip>
@@ -1934,7 +1934,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
19341934
appearance="secondary"
19351935
disabled={!enableButtons && !(isStreaming && !didClickCancel)}
19361936
className={isStreaming ? "flex-[2] ml-0" : "flex-1 ml-[6px]"}
1937-
onClick={() => handleSecondaryButtonClick()}>
1937+
onClick={() => handleSecondaryButtonClick(inputValue, selectedImages)}>
19381938
{isStreaming ? t("chat:cancel.title") : secondaryButtonText}
19391939
</VSCodeButton>
19401940
</StandardTooltip>

0 commit comments

Comments
 (0)