Fixing bug on accepting tool response (#4675)
This commit is contained in:
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(
|
||||
|
||||
Reference in new issue
Block a user