chore: remove runtime config in agent builder and doc writer

This commit is contained in:
rdmclin2
2026-03-25 12:49:36 +08:00
parent 366b02bb46
commit 30a9d8b030
5 changed files with 10 additions and 3 deletions

View File

@@ -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>
);

View File

@@ -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>
);

View File

@@ -102,6 +102,7 @@ const Conversation = memo(() => {
leftContent={leftContent}
sendAreaPrefix={modelSelector}
sendButtonProps={COMPACT_SEND_BUTTON_PROPS}
showRuntimeConfig={false}
/>
</Flexbox>
</DragUploadZone>

View File

@@ -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>

View File

@@ -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>
);
});