From cce8f09ae5d29868ca950f158a11effd32f45f87 Mon Sep 17 00:00:00 2001 From: Ara Date: Mon, 7 Jul 2025 19:19:50 -0600 Subject: [PATCH] Fixing bug on accepting tool response (#4675) --- .../chat/chat-view/hooks/useMessageHandlers.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webview-ui/src/components/chat/chat-view/hooks/useMessageHandlers.ts b/webview-ui/src/components/chat/chat-view/hooks/useMessageHandlers.ts index afb46274..273b17fb 100644 --- a/webview-ui/src/components/chat/chat-view/hooks/useMessageHandlers.ts +++ b/webview-ui/src/components/chat/chat-view/hooks/useMessageHandlers.ts @@ -120,7 +120,14 @@ export function useMessageHandlers(messages: ClineMessage[], chatState: ChatStat // If there's no input content, just approve the action if (trimmedInput || (images && images.length > 0) || (files && files.length > 0)) { // Send as a regular message so it appears in the conversation - await handleSendMessage(trimmedInput || "", images || [], files || []) + await TaskServiceClient.askResponse( + AskResponseRequest.create({ + responseType: "yesButtonClicked", + text: trimmedInput, + images: images, + files: files, + }), + ) } else { // No input content, just approve the action await TaskServiceClient.askResponse(