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.

♻️ refactor(chat-input): rename RuntimeConfig→ControlBar, WorkingDirectoryBar→HeteroControlBar (#15545)

Arvin Xu5b534f45d1a4
diff --git a/src/features/AgentBuilder/AgentBuilderConversation.tsx b/src/features/AgentBuilder/AgentBuilderConversation.tsx
index de1a9a50c0c..1f1d539b4ee 100644
--- a/src/features/AgentBuilder/AgentBuilderConversation.tsx
+++ b/src/features/AgentBuilder/AgentBuilderConversation.tsx
@@ -33,7 +33,7 @@ const AgentBuilderConversation = memo<AgentBuilderConversationProps>(({ agentId
<Flexbox flex={1} style={{ overflow: 'hidden' }}>
<ChatList welcome={<AgentBuilderWelcome />} />
</Flexbox>
- <ChatInput leftActions={actions} rightActions={rightActions} showRuntimeConfig={false} />
+ <ChatInput leftActions={actions} rightActions={rightActions} showControlBar={false} />
</Flexbox>
</DragUploadZone>
);
diff --git a/src/features/AgentTaskManager/Conversation.tsx b/src/features/AgentTaskManager/Conversation.tsx
index 7b49a49eb3c..148392af152 100644
--- a/src/features/AgentTaskManager/Conversation.tsx
+++ b/src/features/AgentTaskManager/Conversation.tsx
@@ -93,7 +93,7 @@ const Conversation = memo(() => {
leftContent={leftContent}
sendAreaPrefix={modelSelector}
sendButtonProps={COMPACT_SEND_BUTTON_PROPS}
- showRuntimeConfig={false}
+ showControlBar={false}
/>
</Flexbox>
</DragUploadZone>
diff --git a/src/features/ChatInput/RuntimeConfig/AddWorkingDirModal.tsx b/src/features/ChatInput/ControlBar/AddWorkingDirModal.tsx
similarity index 100%
rename from src/features/ChatInput/RuntimeConfig/AddWorkingDirModal.tsx
rename to src/features/ChatInput/ControlBar/AddWorkingDirModal.tsx
diff --git a/src/features/ChatInput/RuntimeConfig/ApprovalMode.tsx b/src/features/ChatInput/ControlBar/ApprovalMode.tsx
similarity index 100%
rename from src/features/ChatInput/RuntimeConfig/ApprovalMode.tsx
rename to src/features/ChatInput/ControlBar/ApprovalMode.tsx
diff --git a/src/features/ChatInput/RuntimeConfig/BranchSwitcher.tsx b/src/features/ChatInput/ControlBar/BranchSwitcher.tsx
similarity index 100%
rename from src/features/ChatInput/RuntimeConfig/BranchSwitcher.tsx
rename to src/features/ChatInput/ControlBar/BranchSwitcher.tsx
diff --git a/src/features/ChatInput/RuntimeConfig/CloudRepoSwitcher.tsx b/src/features/ChatInput/ControlBar/CloudRepoSwitcher.tsx
similarity index 100%
rename from src/features/ChatInput/RuntimeConfig/CloudRepoSwitcher.tsx
rename to src/features/ChatInput/ControlBar/CloudRepoSwitcher.tsx
diff --git a/src/features/ChatInput/RuntimeConfig/CreateBranchModal.tsx b/src/features/ChatInput/ControlBar/CreateBranchModal.tsx
similarity index 100%
rename from src/features/ChatInput/RuntimeConfig/CreateBranchModal.tsx
rename to src/features/ChatInput/ControlBar/CreateBranchModal.tsx
diff --git a/src/features/ChatInput/RuntimeConfig/DirIcon.tsx b/src/features/ChatInput/ControlBar/DirIcon.tsx
similarity index 100%
rename from src/features/ChatInput/RuntimeConfig/DirIcon.tsx
rename to src/features/ChatInput/ControlBar/DirIcon.tsx
diff --git a/src/features/ChatInput/RuntimeConfig/GitStatus.tsx b/src/features/ChatInput/ControlBar/GitStatus.tsx
similarity index 100%
rename from src/features/ChatInput/RuntimeConfig/GitStatus.tsx
rename to src/features/ChatInput/ControlBar/GitStatus.tsx
diff --git a/src/features/ChatInput/RuntimeConfig/HeteroDeviceSwitcher.tsx b/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx
similarity index 100%
rename from src/features/ChatInput/RuntimeConfig/HeteroDeviceSwitcher.tsx
rename to src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx
diff --git a/src/features/ChatInput/RuntimeConfig/ModeSelector.tsx b/src/features/ChatInput/ControlBar/ModeSelector.tsx
similarity index 100%
rename from src/features/ChatInput/RuntimeConfig/ModeSelector.tsx
rename to src/features/ChatInput/ControlBar/ModeSelector.tsx
diff --git a/src/features/ChatInput/RuntimeConfig/WorkingDirectoryPicker.tsx b/src/features/ChatInput/ControlBar/WorkingDirectoryPicker.tsx
similarity index 100%
rename from src/features/ChatInput/RuntimeConfig/WorkingDirectoryPicker.tsx
rename to src/features/ChatInput/ControlBar/WorkingDirectoryPicker.tsx
diff --git a/src/features/ChatInput/RuntimeConfig/WorkingDirectorySection.tsx b/src/features/ChatInput/ControlBar/WorkingDirectorySection.tsx
similarity index 100%
rename from src/features/ChatInput/RuntimeConfig/WorkingDirectorySection.tsx
rename to src/features/ChatInput/ControlBar/WorkingDirectorySection.tsx
diff --git a/src/features/ChatInput/RuntimeConfig/WorkspaceControls.tsx b/src/features/ChatInput/ControlBar/WorkspaceControls.tsx
similarity index 94%
rename from src/features/ChatInput/RuntimeConfig/WorkspaceControls.tsx
rename to src/features/ChatInput/ControlBar/WorkspaceControls.tsx
index a2a8a6bd81d..a00be961b9f 100644
--- a/src/features/ChatInput/RuntimeConfig/WorkspaceControls.tsx
+++ b/src/features/ChatInput/ControlBar/WorkspaceControls.tsx
@@ -22,10 +22,10 @@ interface WorkspaceControlsProps {
}
/**
- * Workspace/Project control strip shared by the chat-input runtime bars:
+ * Workspace/Project control strip shared by the chat-input control bars:
* device selector + working directory + git branch / file changes / PR info.
*
- * Both RuntimeConfig (normal agents) and the heterogeneous WorkingDirectoryBar
+ * Both ControlBar (normal agents) and HeteroControlBar (heterogeneous agents)
* compose this, so the Device / Branch / diff / PR cluster can't drift between
* them. The bar-specific bits (ModeSelector, ApprovalMode, ContextWindow, the
* full-access badge) stay in their respective bars.
diff --git a/src/features/ChatInput/RuntimeConfig/index.tsx b/src/features/ChatInput/ControlBar/index.tsx
similarity index 95%
rename from src/features/ChatInput/RuntimeConfig/index.tsx
rename to src/features/ChatInput/ControlBar/index.tsx
index bfdc4a9a77c..d458fce215c 100644
--- a/src/features/ChatInput/RuntimeConfig/index.tsx
+++ b/src/features/ChatInput/ControlBar/index.tsx
@@ -23,10 +23,8 @@ const styles = createStaticStyles(({ css }) => ({
// scrollbar is hidden — trackpad / wheel still works.
leftGroup: css`
scrollbar-width: none;
-
overflow: auto hidden;
flex: 1;
-
min-width: 0;
&::-webkit-scrollbar {
@@ -39,7 +37,7 @@ const styles = createStaticStyles(({ css }) => ({
`,
}));
-const RuntimeConfig = memo(() => {
+const ControlBar = memo(() => {
const agentId = useAgentId();
const showContextWindow = useChatInputStore((s) =>
s.rightActions.flat().includes('contextWindow'),
@@ -76,6 +74,6 @@ const RuntimeConfig = memo(() => {
);
});
-RuntimeConfig.displayName = 'RuntimeConfig';
+ControlBar.displayName = 'ControlBar';
-export default RuntimeConfig;
+export default ControlBar;
diff --git a/src/features/ChatInput/RuntimeConfig/recentDirs.ts b/src/features/ChatInput/ControlBar/recentDirs.ts
similarity index 100%
rename from src/features/ChatInput/RuntimeConfig/recentDirs.ts
rename to src/features/ChatInput/ControlBar/recentDirs.ts
diff --git a/src/features/ChatInput/RuntimeConfig/useCommitWorkingDirectory.ts b/src/features/ChatInput/ControlBar/useCommitWorkingDirectory.ts
similarity index 100%
rename from src/features/ChatInput/RuntimeConfig/useCommitWorkingDirectory.ts
rename to src/features/ChatInput/ControlBar/useCommitWorkingDirectory.ts
diff --git a/src/features/ChatInput/RuntimeConfig/useMigrateDeviceRecents.ts b/src/features/ChatInput/ControlBar/useMigrateDeviceRecents.ts
similarity index 100%
rename from src/features/ChatInput/RuntimeConfig/useMigrateDeviceRecents.ts
rename to src/features/ChatInput/ControlBar/useMigrateDeviceRecents.ts
diff --git a/src/features/ChatInput/RuntimeConfig/useRepoType.ts b/src/features/ChatInput/ControlBar/useRepoType.ts
similarity index 100%
rename from src/features/ChatInput/RuntimeConfig/useRepoType.ts
rename to src/features/ChatInput/ControlBar/useRepoType.ts
diff --git a/src/features/ChatInput/Desktop/index.tsx b/src/features/ChatInput/Desktop/index.tsx
index 1115714533e..6499340f2b1 100644
--- a/src/features/ChatInput/Desktop/index.tsx
+++ b/src/features/ChatInput/Desktop/index.tsx
@@ -19,10 +19,10 @@ import { systemStatusSelectors } from '@/store/global/selectors';
import { type ActionToolbarProps } from '../ActionBar';
import ActionBar from '../ActionBar';
+import ControlBar from '../ControlBar';
import InputEditor from '../InputEditor';
import { useSkillDrop } from '../InputEditor/ActionTag/useSkillDrop';
import { type PlaceholderVariant } from '../InputEditor/Placeholder';
-import RuntimeConfig from '../RuntimeConfig';
import SendArea from '../SendArea';
import TypoBar from '../TypoBar';
import ContextContainer from './ContextContainer';
@@ -61,6 +61,11 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
interface DesktopChatInputProps extends ActionToolbarProps {
actionBarStyle?: React.CSSProperties;
+ /**
+ * Custom node to render in place of the default ControlBar.
+ * When provided, used instead of `<ControlBar />` (ignores `showControlBar`).
+ */
+ controlBarSlot?: ReactNode;
extentHeaderContent?: ReactNode;
hidden?: boolean;
inputContainerProps?: ChatInputProps;
@@ -74,21 +79,16 @@ interface DesktopChatInputProps extends ActionToolbarProps {
placeholder?: ReactNode;
placeholderVariant?: PlaceholderVariant;
rightContent?: ReactNode;
- /**
- * Custom node to render in place of the default RuntimeConfig bar.
- * When provided, used instead of `<RuntimeConfig />` (ignores `showRuntimeConfig`).
- */
- runtimeConfigSlot?: ReactNode;
sendAreaPrefix?: ReactNode;
+ showControlBar?: boolean;
showFootnote?: boolean;
- showRuntimeConfig?: boolean;
}
const DesktopChatInput = memo<DesktopChatInputProps>(
({
showFootnote,
- showRuntimeConfig = true,
- runtimeConfigSlot,
+ showControlBar = true,
+ controlBarSlot,
inputContainerProps,
extentHeaderContent,
actionBarStyle,
@@ -207,7 +207,7 @@ const DesktopChatInput = memo<DesktopChatInputProps>(
>
<InputEditor placeholder={placeholder} placeholderVariant={placeholderVariant} />
</ChatInput>
- {runtimeConfigSlot ?? (showRuntimeConfig && <RuntimeConfig />)}
+ {controlBarSlot ?? (showControlBar && <ControlBar />)}
{showFootnote && !expand && (
<Center style={{ pointerEvents: 'none', zIndex: 100 }}>
<Text className={styles.footnote} type={'secondary'}>
@@ -227,4 +227,4 @@ const DesktopChatInput = memo<DesktopChatInputProps>(
DesktopChatInput.displayName = 'DesktopChatInput';
-export default DesktopChatInput;
\ No newline at end of file
+export default DesktopChatInput;
diff --git a/src/features/Conversation/ChatInput/index.tsx b/src/features/Conversation/ChatInput/index.tsx
index 928a1289b10..c39d8957158 100644
--- a/src/features/Conversation/ChatInput/index.tsx
+++ b/src/features/Conversation/ChatInput/index.tsx
@@ -52,6 +52,11 @@ export interface ChatInputProps {
* Use this to add custom UI like error alerts, MessageFromUrl, etc.
*/
children?: ReactNode;
+ /**
+ * Custom node to render in place of the default ControlBar
+ * (Local/Cloud/Approval). When provided, replaces the default bar.
+ */
+ controlBarSlot?: ReactNode;
/**
* Suppress the followUp placeholder variant (e.g. onboarding has no
* follow-up design). When true, placeholder stays in default variant.
@@ -96,11 +101,6 @@ export interface ChatInputProps {
* Right action buttons configuration
*/
rightActions?: ActionKeys[];
- /**
- * Custom node to render in place of the default RuntimeConfig bar
- * (Local/Cloud/Approval). When provided, replaces the default bar.
- */
- runtimeConfigSlot?: ReactNode;
/**
* Custom content to render before the SendArea (right side of action bar)
*/
@@ -114,9 +114,9 @@ export interface ChatInputProps {
*/
sendMenu?: MenuProps;
/**
- * Whether to show the runtime config bar (Local/Cloud/Auto Approve)
+ * Whether to show the control bar (Local/Cloud/Auto Approve)
*/
- showRuntimeConfig?: boolean;
+ showControlBar?: boolean;
/**
* Remove a small margin when placed adjacent to the ChatList
*/
@@ -143,11 +143,11 @@ const ChatInput = memo<ChatInputProps>(
extraActionItems,
isConfigLoading = false,
mentionItems,
- runtimeConfigSlot,
+ controlBarSlot,
sendMenu,
sendAreaPrefix,
sendButtonProps: customSendButtonProps,
- showRuntimeConfig = true,
+ showControlBar = true,
onEditorReady,
skipScrollMarginWithList,
}) => {
@@ -321,14 +321,14 @@ const ChatInput = memo<ChatInputProps>(
<DesktopChatInput
actionBarStyle={actionBarStyle}
borderRadius={12}
+ controlBarSlot={controlBarSlot}
extraActionItems={extraActionItems}
hidden={hasPendingInterventions}
isConfigLoading={isConfigLoading}
leftContent={leftContent}
placeholderVariant={placeholderVariant}
- runtimeConfigSlot={runtimeConfigSlot}
sendAreaPrefix={businessSendAreaPrefix}
- showRuntimeConfig={showRuntimeConfig}
+ showControlBar={showControlBar}
/>
</div>
</WideScreenContainer>
@@ -365,4 +365,4 @@ const ChatInput = memo<ChatInputProps>(
ChatInput.displayName = 'ConversationChatInput';
-export default ChatInput;
\ No newline at end of file
+export default ChatInput;
diff --git a/src/features/Onboarding/Agent/Conversation.test.tsx b/src/features/Onboarding/Agent/Conversation.test.tsx
index 0bf291c11dc..fd335ed3b55 100644
--- a/src/features/Onboarding/Agent/Conversation.test.tsx
+++ b/src/features/Onboarding/Agent/Conversation.test.tsx
@@ -170,7 +170,7 @@ describe('AgentOnboardingConversation', () => {
allowExpand: false,
leftActions: [],
rightActions: [],
- showRuntimeConfig: false,
+ showControlBar: false,
}),
);
});
diff --git a/src/features/Onboarding/Agent/Conversation.tsx b/src/features/Onboarding/Agent/Conversation.tsx
index d746394be56..bc547d01018 100644
--- a/src/features/Onboarding/Agent/Conversation.tsx
+++ b/src/features/Onboarding/Agent/Conversation.tsx
@@ -205,7 +205,7 @@ const AgentOnboardingConversation = memo<AgentOnboardingConversationProps>(
isConfigLoading={!isInputReady}
leftActions={chatInputLeftActions}
rightActions={chatInputRightActions}
- showRuntimeConfig={false}
+ showControlBar={false}
/>
</Flexbox>
)}
diff --git a/src/features/PageEditor/Copilot/Conversation.tsx b/src/features/PageEditor/Copilot/Conversation.tsx
index 2757de11327..bb709527eee 100644
--- a/src/features/PageEditor/Copilot/Conversation.tsx
+++ b/src/features/PageEditor/Copilot/Conversation.tsx
@@ -82,7 +82,7 @@ const Conversation = memo(() => {
leftContent={leftContent}
sendAreaPrefix={modelSelector}
sendButtonProps={COMPACT_SEND_BUTTON_PROPS}
- showRuntimeConfig={false}
+ showControlBar={false}
/>
</Flexbox>
</DragUploadZone>
diff --git a/src/features/ResourceManager/components/Editor/FileCopilot.tsx b/src/features/ResourceManager/components/Editor/FileCopilot.tsx
index 9c134949145..e219c32e1ea 100644
--- a/src/features/ResourceManager/components/Editor/FileCopilot.tsx
+++ b/src/features/ResourceManager/components/Editor/FileCopilot.tsx
@@ -44,7 +44,7 @@ const FileCopilot = memo(() => {
<Flexbox flex={1} style={{ overflow: 'hidden' }}>
<ChatList />
</Flexbox>
- <ChatInput leftActions={actions} showRuntimeConfig={false} />
+ <ChatInput leftActions={actions} showControlBar={false} />
</Flexbox>
</DragUploadZone>
</RightPanel>
diff --git a/src/routes/(main)/agent/_layout/Sidebar/Topic/List/Item/index.tsx b/src/routes/(main)/agent/_layout/Sidebar/Topic/List/Item/index.tsx
index ccf076ca265..4b6a235ff57 100644
--- a/src/routes/(main)/agent/_layout/Sidebar/Topic/List/Item/index.tsx
+++ b/src/routes/(main)/agent/_layout/Sidebar/Topic/List/Item/index.tsx
@@ -9,7 +9,7 @@ import DotsLoading from '@/components/DotsLoading';
import RingLoadingIcon from '@/components/RingLoading';
import { SESSION_CHAT_TOPIC_URL } from '@/const/url';
import { isDesktop } from '@/const/version';
-import DirIcon from '@/features/ChatInput/RuntimeConfig/DirIcon';
+import DirIcon from '@/features/ChatInput/ControlBar/DirIcon';
import NavItem from '@/features/NavPanel/components/NavItem';
import { getPlatformIcon } from '@/routes/(main)/agent/channel/const';
import { useAgentStore } from '@/store/agent';
diff --git a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/WorkingDirectoryBar.tsx b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/HeteroControlBar.tsx
similarity index 93%
rename from src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/WorkingDirectoryBar.tsx
rename to src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/HeteroControlBar.tsx
index e0064134ac2..8d45a3050a2 100644
--- a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/WorkingDirectoryBar.tsx
+++ b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/HeteroControlBar.tsx
@@ -7,8 +7,8 @@ import { CircleAlertIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
+import WorkspaceControls from '@/features/ChatInput/ControlBar/WorkspaceControls';
import { useAgentId } from '@/features/ChatInput/hooks/useAgentId';
-import WorkspaceControls from '@/features/ChatInput/RuntimeConfig/WorkspaceControls';
import { useAgentStore } from '@/store/agent';
import { agentByIdSelectors } from '@/store/agent/selectors';
@@ -56,7 +56,7 @@ const styles = createStaticStyles(({ css }) => ({
`,
}));
-const WorkingDirectoryBar = memo(() => {
+const HeteroControlBar = memo(() => {
const { t: tChat } = useTranslation('chat');
const agentId = useAgentId();
@@ -102,6 +102,6 @@ const WorkingDirectoryBar = memo(() => {
);
});
-WorkingDirectoryBar.displayName = 'HeterogeneousWorkingDirectoryBar';
+HeteroControlBar.displayName = 'HeteroControlBar';
-export default WorkingDirectoryBar;
+export default HeteroControlBar;
diff --git a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/index.tsx b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/index.tsx
index 706d5c0dfd8..037a9c6545a 100644
--- a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/index.tsx
+++ b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/index.tsx
@@ -19,7 +19,7 @@ import { useAgentStore } from '@/store/agent';
import { agentSelectors } from '@/store/agent/selectors';
import { useChatStore } from '@/store/chat';
-import WorkingDirectoryBar from './WorkingDirectoryBar';
+import HeteroControlBar from './HeteroControlBar';
// Heterogeneous agents (e.g. Claude Code) bring their own toolchain, memory,
// and model, so LobeHub-side pickers don't apply. Typo is kept so the user
@@ -133,9 +133,9 @@ const HeterogeneousChatInput = memo(() => {
{renderDeviceGuard()}
<ChatInput
skipScrollMarginWithList
+ controlBarSlot={<HeteroControlBar />}
leftActions={leftActions}
rightActions={rightActions}
- runtimeConfigSlot={<WorkingDirectoryBar />}
sendButtonProps={{ disabled: inputDisabled, shape: 'round' }}
onEditorReady={(instance) => {
// Sync to global ChatStore for compatibility with other features
diff --git a/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx b/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx
index ea914f394d2..a96a993c204 100644
--- a/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx
+++ b/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx
@@ -5,7 +5,7 @@ import { lazy, memo } from 'react';
import { useTranslation } from 'react-i18next';
import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@/const/layoutTokens';
-import { useRepoType } from '@/features/ChatInput/RuntimeConfig/useRepoType';
+import { useRepoType } from '@/features/ChatInput/ControlBar/useRepoType';
import RightPanel from '@/features/RightPanel';
import { resolveTargetDeviceId } from '@/helpers/agentWorkingDirectory';
import { useEffectiveWorkingDirectory } from '@/hooks/useEffectiveWorkingDirectory';
diff --git a/src/routes/(main)/group/profile/features/AgentBuilder/AgentBuilderConversation.tsx b/src/routes/(main)/group/profile/features/AgentBuilder/AgentBuilderConversation.tsx
index cc1eb88c933..5ee81ef32a5 100644
--- a/src/routes/(main)/group/profile/features/AgentBuilder/AgentBuilderConversation.tsx
+++ b/src/routes/(main)/group/profile/features/AgentBuilder/AgentBuilderConversation.tsx
@@ -24,7 +24,7 @@ const AgentBuilderConversation = memo<AgentBuilderConversationProps>(({ agentId
<Flexbox flex={1} style={{ overflow: 'hidden' }}>
<ChatList welcome={<AgentBuilderWelcome mode="group" />} />
</Flexbox>
- <ChatInput leftActions={actions} rightActions={rightActions} showRuntimeConfig={false} />
+ <ChatInput leftActions={actions} rightActions={rightActions} showControlBar={false} />
</Flexbox>
);
});
diff --git a/src/routes/(main)/home/_layout/hooks/useCreateModal.tsx b/src/routes/(main)/home/_layout/hooks/useCreateModal.tsx
index 183248a1174..77eca848159 100644
--- a/src/routes/(main)/home/_layout/hooks/useCreateModal.tsx
+++ b/src/routes/(main)/home/_layout/hooks/useCreateModal.tsx
@@ -259,7 +259,7 @@ export const CreateAgentModal = memo<CreateAgentModalProps>(
>
<DesktopChatInput
inputContainerProps={inputContainerProps}
- showRuntimeConfig={false}
+ showControlBar={false}
placeholder={
isAgent ? t('createModal.placeholder') : t('createModal.groupPlaceholder')
}
diff --git a/src/routes/(main)/home/features/InputArea/index.tsx b/src/routes/(main)/home/features/InputArea/index.tsx
index 342ae20e7b3..bb4e2e18529 100644
--- a/src/routes/(main)/home/features/InputArea/index.tsx
+++ b/src/routes/(main)/home/features/InputArea/index.tsx
@@ -160,7 +160,7 @@ const InputArea = () => {
dropdownPlacement="bottomLeft"
inputContainerProps={inputContainerProps}
placeholder={dailyHint}
- showRuntimeConfig={false}
+ showControlBar={false}
/>
</ChatInputProvider>
</DragUploadZone>
diff --git a/src/routes/(main)/settings/devices/features/DeviceDetailPanel.tsx b/src/routes/(main)/settings/devices/features/DeviceDetailPanel.tsx
index 332b9fe7053..5618c287bc4 100644
--- a/src/routes/(main)/settings/devices/features/DeviceDetailPanel.tsx
+++ b/src/routes/(main)/settings/devices/features/DeviceDetailPanel.tsx
@@ -9,7 +9,7 @@ import { FolderOpenIcon, FolderPlusIcon, XIcon } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
-import DirIcon from '@/features/ChatInput/RuntimeConfig/DirIcon';
+import DirIcon from '@/features/ChatInput/ControlBar/DirIcon';
import { lambdaQuery } from '@/libs/trpc/client';
import { electronSystemService } from '@/services/electron/system';
import { nextWorkingDirs } from '@/store/device';