Fixing bug on accepting tool response (#4675)

This commit is contained in:
Ara authored and GitHub committed 2025-07-07 18:19:50 -07:00
1 parent 0262e13ac4
commit cce8f09ae5
1 file changed
+8 -1
@@ -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(