From 3ff10faede2359465dc41e119f4b7b3662ec489b Mon Sep 17 00:00:00 2001 From: Roo Code Date: Mon, 24 Nov 2025 07:59:00 +0000 Subject: [PATCH] fix: reset UI state when canceling during streaming to prevent frozen cancel button This fixes issue #9529 where the cancel button would get stuck/frozen when attempting to cancel a task during an API request. The UI state variables (sendingDisabled, clineAsk, enableButtons) are now properly reset when canceling during streaming, allowing the UI to return to the correct state and show the "new task" and "terminate" buttons. Fixes #9529 --- webview-ui/src/components/chat/ChatView.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index e09cdc557a..1bf430a3d2 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -682,6 +682,10 @@ const ChatViewComponent: React.ForwardRefRenderFunction