From a3144267dd086777fbe31823f6fdfaa8304122ad Mon Sep 17 00:00:00 2001 From: John Stearns Date: Tue, 5 Nov 2024 15:38:15 -0800 Subject: [PATCH] Adding back some comments that were inadvertently removed --- webview-ui/src/components/chat/ChatView.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index e6f6323..f214d5d 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -147,7 +147,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie setEnableButtons(true) setPrimaryButtonText("Resume Task") setSecondaryButtonText("Terminate") - setDidClickCancel(false) + setDidClickCancel(false) // special case where we reset the cancel button state break case "resume_completed_task": setTextAreaDisabled(false) @@ -322,12 +322,15 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie case "command": case "tool": case "browser_action_launch": + // responds to the API with a "This operation failed" and lets it try again vscode.postMessage({ type: "askResponse", askResponse: "noButtonClicked" }) break } setTextAreaDisabled(true) setClineAsk(undefined) setEnableButtons(false) + // setPrimaryButtonText(undefined) + // setSecondaryButtonText(undefined) disableAutoScrollRef.current = false }, [clineAsk, startNewTask, isStreaming])