diff --git a/src/renderer/src/components/Tab/TabContainer.tsx b/src/renderer/src/components/Tab/TabContainer.tsx
index efa19565d1..2f6ebcd9e9 100644
--- a/src/renderer/src/components/Tab/TabContainer.tsx
+++ b/src/renderer/src/components/Tab/TabContainer.tsx
@@ -58,7 +58,7 @@ const getTabIcon = (tabId: string, minapps: any[]): React.ReactNode | undefined
switch (tabId) {
case 'home':
return
- case 'agents':
+ case 'assistantPresets':
return
case 'translate':
return
diff --git a/src/renderer/src/i18n/label.ts b/src/renderer/src/i18n/label.ts
index 8d621f6517..9c858c3baa 100644
--- a/src/renderer/src/i18n/label.ts
+++ b/src/renderer/src/i18n/label.ts
@@ -125,7 +125,8 @@ export const getRestoreProgressLabel = (key: string): string => {
}
const titleKeyMap = {
- agents: 'title.agents',
+ // TODO: update i18n key
+ assistantPresets: 'title.agents',
apps: 'title.apps',
code: 'title.code',
files: 'title.files',
diff --git a/src/renderer/src/pages/home/Tabs/index.tsx b/src/renderer/src/pages/home/Tabs/index.tsx
index 9362288df7..40ae186123 100644
--- a/src/renderer/src/pages/home/Tabs/index.tsx
+++ b/src/renderer/src/pages/home/Tabs/index.tsx
@@ -9,6 +9,7 @@ import { FC, useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import styled from 'styled-components'
+import { AgentsTab as Agents } from './AgentsTab'
import Assistants from './AssistantsTab'
import Settings from './SettingsTab'
import Topics from './TopicsTab'
@@ -23,7 +24,7 @@ interface Props {
style?: React.CSSProperties
}
-type Tab = 'assistants' | 'topic' | 'settings'
+type Tab = 'assistants' | 'topic' | 'settings' | 'agents' | 'sessions'
let _tab: any = ''
@@ -107,6 +108,9 @@ const HomeTabs: FC = ({
setTab('assistants')}>
{t('assistants.abbr')}
+ setTab('agents')}>
+ {t('agents.title')}
+
setTab('topic')}>
{t('common.topics')}
@@ -136,6 +140,7 @@ const HomeTabs: FC = ({
onCreateDefaultAssistant={onCreateDefaultAssistant}
/>
)}
+ {tab === 'agents' && }
{tab === 'topic' && (
{
{
icon: ,
text: t('title.agents'),
- path: '/agents',
+ path: '/assistantPresets',
bgColor: 'linear-gradient(135deg, #6366F1, #4F46E5)' // AI助手:靛蓝渐变,代表智能和科技
},
{