From 91f48987517b0fe114817dace83d81a2e47e1114 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Tue, 11 Nov 2025 05:38:16 +0000 Subject: [PATCH] fix: remove redundant UI controls when editing messages - Hide ModeSelector, ApiConfigSelector, and AutoApproveDropdown when isEditMode is true - Keeps the editing interface clean and prevents duplicate controls - Fixes #9163 --- .../src/components/chat/ChatTextArea.tsx | 106 +++++++++--------- 1 file changed, 54 insertions(+), 52 deletions(-) diff --git a/webview-ui/src/components/chat/ChatTextArea.tsx b/webview-ui/src/components/chat/ChatTextArea.tsx index 0b8c89388c..fae23c0d0a 100644 --- a/webview-ui/src/components/chat/ChatTextArea.tsx +++ b/webview-ui/src/components/chat/ChatTextArea.tsx @@ -1210,59 +1210,61 @@ export const ChatTextArea = forwardRef( /> )} -
-
- - - + {!isEditMode && ( +
+
+ + + +
+
+ {isTtsPlaying && ( + + + + )} + {!isEditMode ? : null} + {!isEditMode && cloudUserInfo && } +
-
- {isTtsPlaying && ( - - - - )} - {!isEditMode ? : null} - {!isEditMode && cloudUserInfo && } -
-
+ )}
) },