From ca177cce723c79998147f9a217f7a6fcc6d95544 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Tue, 11 Nov 2025 16:22:50 +0000 Subject: [PATCH] fix: remove duplicate controls when editing messages - Hide ModeSelector, ApiConfigSelector, and AutoApproveDropdown when isEditMode is true - Prevents redundant UI elements from appearing below the message editing area - Keeps main controls at the bottom of the chat UI for overall control Fixes #9163 --- .../src/components/chat/ChatTextArea.tsx | 102 +++++++++--------- 1 file changed, 50 insertions(+), 52 deletions(-) diff --git a/webview-ui/src/components/chat/ChatTextArea.tsx b/webview-ui/src/components/chat/ChatTextArea.tsx index 0b8c89388c..9344e1f5d1 100644 --- a/webview-ui/src/components/chat/ChatTextArea.tsx +++ b/webview-ui/src/components/chat/ChatTextArea.tsx @@ -1210,59 +1210,57 @@ export const ChatTextArea = forwardRef( /> )} -
-
- - - + {!isEditMode && ( +
+
+ + + +
+
+ {isTtsPlaying && ( + + + + )} + + {cloudUserInfo && } +
-
- {isTtsPlaying && ( - - - - )} - {!isEditMode ? : null} - {!isEditMode && cloudUserInfo && } -
-
+ )}
) },