Skip to content

Commit 4c215a0

Browse files
committed
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
1 parent 9db64de commit 4c215a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
295295
case "appliedDiff":
296296
case "newFileCreated":
297297
case "insertContent":
298+
case "searchAndReplace":
298299
setPrimaryButtonText(t("chat:save.title"))
299300
setSecondaryButtonText(t("chat:reject.title"))
300301
break

0 commit comments

Comments
 (0)