Skip to content

Commit a314426

Browse files
committed
Adding back some comments that were inadvertently removed
1 parent f73ffd9 commit a314426

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
147147
setEnableButtons(true)
148148
setPrimaryButtonText("Resume Task")
149149
setSecondaryButtonText("Terminate")
150-
setDidClickCancel(false)
150+
setDidClickCancel(false) // special case where we reset the cancel button state
151151
break
152152
case "resume_completed_task":
153153
setTextAreaDisabled(false)
@@ -322,12 +322,15 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
322322
case "command":
323323
case "tool":
324324
case "browser_action_launch":
325+
// responds to the API with a "This operation failed" and lets it try again
325326
vscode.postMessage({ type: "askResponse", askResponse: "noButtonClicked" })
326327
break
327328
}
328329
setTextAreaDisabled(true)
329330
setClineAsk(undefined)
330331
setEnableButtons(false)
332+
// setPrimaryButtonText(undefined)
333+
// setSecondaryButtonText(undefined)
331334
disableAutoScrollRef.current = false
332335
}, [clineAsk, startNewTask, isStreaming])
333336

0 commit comments

Comments
 (0)