From 30a9d8b0309890e6913ef3602dc1771fd6116dce Mon Sep 17 00:00:00 2001 From: rdmclin2 Date: Wed, 25 Mar 2026 12:49:36 +0800 Subject: [PATCH] chore: remove runtime config in agent builder and doc writer --- src/features/AgentBuilder/AgentBuilderConversation.tsx | 2 +- src/features/Conversation/ChatInput/index.tsx | 6 ++++++ src/features/PageEditor/Copilot/Conversation.tsx | 1 + .../ResourceManager/components/Editor/FileCopilot.tsx | 2 +- .../features/AgentBuilder/AgentBuilderConversation.tsx | 2 +- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/features/AgentBuilder/AgentBuilderConversation.tsx b/src/features/AgentBuilder/AgentBuilderConversation.tsx index 23507e0d72..b062a3fc31 100644 --- a/src/features/AgentBuilder/AgentBuilderConversation.tsx +++ b/src/features/AgentBuilder/AgentBuilderConversation.tsx @@ -32,7 +32,7 @@ const AgentBuilderConversation = memo(({ agentId } /> - + ); diff --git a/src/features/Conversation/ChatInput/index.tsx b/src/features/Conversation/ChatInput/index.tsx index 8a9c258527..e4d901acb8 100644 --- a/src/features/Conversation/ChatInput/index.tsx +++ b/src/features/Conversation/ChatInput/index.tsx @@ -70,6 +70,10 @@ export interface ChatInputProps { * Send menu configuration (for send options like Enter/Cmd+Enter, Add AI/User message) */ sendMenu?: MenuProps; + /** + * Whether to show the runtime config bar (Local/Cloud/Auto Approve) + */ + showRuntimeConfig?: boolean; /** * Remove a small margin when placed adjacent to the ChatList */ @@ -96,6 +100,7 @@ const ChatInput = memo( sendAreaPrefix, sendButtonProps: customSendButtonProps, onEditorReady, + showRuntimeConfig, skipScrollMarginWithList, }) => { const { t } = useTranslation('chat'); @@ -189,6 +194,7 @@ const ChatInput = memo( extraActionItems={extraActionItems} leftContent={leftContent} sendAreaPrefix={sendAreaPrefix} + showRuntimeConfig={showRuntimeConfig} /> ); diff --git a/src/features/PageEditor/Copilot/Conversation.tsx b/src/features/PageEditor/Copilot/Conversation.tsx index 90969eec23..3e6e1484ca 100644 --- a/src/features/PageEditor/Copilot/Conversation.tsx +++ b/src/features/PageEditor/Copilot/Conversation.tsx @@ -102,6 +102,7 @@ const Conversation = memo(() => { leftContent={leftContent} sendAreaPrefix={modelSelector} sendButtonProps={COMPACT_SEND_BUTTON_PROPS} + showRuntimeConfig={false} /> diff --git a/src/features/ResourceManager/components/Editor/FileCopilot.tsx b/src/features/ResourceManager/components/Editor/FileCopilot.tsx index 694026d8e1..539f26a301 100644 --- a/src/features/ResourceManager/components/Editor/FileCopilot.tsx +++ b/src/features/ResourceManager/components/Editor/FileCopilot.tsx @@ -70,7 +70,7 @@ const FileCopilot = memo(() => { - + diff --git a/src/routes/(main)/group/profile/features/AgentBuilder/AgentBuilderConversation.tsx b/src/routes/(main)/group/profile/features/AgentBuilder/AgentBuilderConversation.tsx index 077c7bb234..7f2053e92c 100644 --- a/src/routes/(main)/group/profile/features/AgentBuilder/AgentBuilderConversation.tsx +++ b/src/routes/(main)/group/profile/features/AgentBuilder/AgentBuilderConversation.tsx @@ -23,7 +23,7 @@ const AgentBuilderConversation = memo(({ agentId } /> - + ); });