Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 440924a

Browse files
authored
fix: clear approval buttons when API request starts (ROO-526) (#10702)
1 parent 8303710 commit 440924a

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -402,12 +402,14 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
402402
setSendingDisabled(true)
403403
break
404404
case "api_req_started":
405-
if (secondLastMessage?.ask === "command_output") {
406-
setSendingDisabled(true)
407-
setSelectedImages([])
408-
setClineAsk(undefined)
409-
setEnableButtons(false)
410-
}
405+
// Clear button state when a new API request starts
406+
// This fixes buttons persisting when the task continues
407+
setSendingDisabled(true)
408+
setSelectedImages([])
409+
setClineAsk(undefined)
410+
setEnableButtons(false)
411+
setPrimaryButtonText(undefined)
412+
setSecondaryButtonText(undefined)
411413
break
412414
case "api_req_finished":
413415
case "error":

0 commit comments

Comments
 (0)