Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

chore: remove runtime config in agent builder and doc writer (#13238)

Rdmclin29b9949befa9b
diff --git a/src/features/AgentBuilder/AgentBuilderConversation.tsx b/src/features/AgentBuilder/AgentBuilderConversation.tsx
index 23507e0d724..b062a3fc317 100644
--- a/src/features/AgentBuilder/AgentBuilderConversation.tsx
+++ b/src/features/AgentBuilder/AgentBuilderConversation.tsx
@@ -32,7 +32,7 @@ const AgentBuilderConversation = memo<AgentBuilderConversationProps>(({ agentId
<Flexbox flex={1} style={{ overflow: 'hidden' }}>
<ChatList welcome={<AgentBuilderWelcome />} />
</Flexbox>
- <ChatInput leftActions={actions} />
+ <ChatInput leftActions={actions} showRuntimeConfig={false} />
</Flexbox>
</DragUploadZone>
);
diff --git a/src/features/Conversation/ChatInput/index.tsx b/src/features/Conversation/ChatInput/index.tsx
index 8a9c2585270..e4d901acb88 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<ChatInputProps>(
sendAreaPrefix,
sendButtonProps: customSendButtonProps,
onEditorReady,
+ showRuntimeConfig,
skipScrollMarginWithList,
}) => {
const { t } = useTranslation('chat');
@@ -189,6 +194,7 @@ const ChatInput = memo<ChatInputProps>(
extraActionItems={extraActionItems}
leftContent={leftContent}
sendAreaPrefix={sendAreaPrefix}
+ showRuntimeConfig={showRuntimeConfig}
/>
</WideScreenContainer>
);
diff --git a/src/features/PageEditor/Copilot/Conversation.tsx b/src/features/PageEditor/Copilot/Conversation.tsx
index 90969eec234..3e6e1484cad 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}
/>
</Flexbox>
</DragUploadZone>
diff --git a/src/features/ResourceManager/components/Editor/FileCopilot.tsx b/src/features/ResourceManager/components/Editor/FileCopilot.tsx
index 694026d8e1a..539f26a301e 100644
--- a/src/features/ResourceManager/components/Editor/FileCopilot.tsx
+++ b/src/features/ResourceManager/components/Editor/FileCopilot.tsx
@@ -70,7 +70,7 @@ const FileCopilot = memo(() => {
<Flexbox flex={1} style={{ overflow: 'hidden' }}>
<ChatList />
</Flexbox>
- <ChatInput leftActions={actions} />
+ <ChatInput leftActions={actions} showRuntimeConfig={false} />
</Flexbox>
</DragUploadZone>
</RightPanel>
diff --git a/src/routes/(main)/group/profile/features/AgentBuilder/AgentBuilderConversation.tsx b/src/routes/(main)/group/profile/features/AgentBuilder/AgentBuilderConversation.tsx
index 077c7bb234f..7f2053e92c1 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<AgentBuilderConversationProps>(({ agentId
<Flexbox flex={1} style={{ overflow: 'hidden' }}>
<ChatList welcome={<AgentBuilderWelcome mode="group" />} />
</Flexbox>
- <ChatInput leftActions={actions} />
+ <ChatInput leftActions={actions} showRuntimeConfig={false} />
</Flexbox>
);
});