From 4c215a01d9d81af9b794bed4a287aa36043e279c Mon Sep 17 00:00:00 2001 From: Roo Code Date: Tue, 15 Jul 2025 19:29:43 +0000 Subject: [PATCH] fix: make search_and_replace tool use Save/Cancel buttons for consistency - Add searchAndReplace to the case that handles write tools - This ensures search_and_replace uses Save/Cancel buttons like other write tools - Fixes issue where Approve/Reject buttons cleared textarea content instead of sending it to chat - Maintains consistent UX across all write operations Fixes #5756 --- webview-ui/src/components/chat/ChatView.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index 0f0b056f75..a47238ff1d 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -295,6 +295,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction