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.

💄 style(home): add Recommendations module with hetero agent action library (#14645)

Arvin Xue261a6ff98f1
diff --git a/locales/en-US/home.json b/locales/en-US/home.json
index 350ec4a4eee..18dc07eee17 100644
--- a/locales/en-US/home.json
+++ b/locales/en-US/home.json
@@ -26,6 +26,11 @@
"brief.viewRun": "View run",
"project.create": "New project",
"project.deleteConfirm": "This project will be deleted and can't be recovered. Confirm to continue.",
+ "recommendations.heteroAgent.cta": "Add Agent",
+ "recommendations.heteroAgent.description": "Detected the {{name}} CLI on this device — add {{name}} agent to chat with it from LobeHub.",
+ "recommendations.heteroAgent.tag": "Coding Agent",
+ "recommendations.heteroAgent.title": "Add {{name}} agent",
+ "recommendations.subtitle": "Some recommendations for your setup",
"starter.createAgent": "Create Agent",
"starter.createGroup": "Create Group",
"starter.deepResearch": "Deep Research",
diff --git a/locales/zh-CN/home.json b/locales/zh-CN/home.json
index aed6ddccab8..c2e97d1bbc5 100644
--- a/locales/zh-CN/home.json
+++ b/locales/zh-CN/home.json
@@ -26,6 +26,11 @@
"brief.viewRun": "查看运行轨迹",
"project.create": "新建项目",
"project.deleteConfirm": "此项目将被删除且无法恢复。确认继续操作。",
+ "recommendations.heteroAgent.cta": "添加助手",
+ "recommendations.heteroAgent.description": "检测到本机已安装 {{name}} CLI,添加 {{name}} 助手即可在 LobeHub 中直接对话。",
+ "recommendations.heteroAgent.tag": "Coding Agent",
+ "recommendations.heteroAgent.title": "添加 {{name}} 助手",
+ "recommendations.subtitle": "为你推荐的一些功能",
"starter.createAgent": "创建助理",
"starter.createGroup": "创建群组",
"starter.deepResearch": "探究",
diff --git a/src/features/DailyBrief/index.tsx b/src/features/DailyBrief/index.tsx
index 5b5fd15bf66..e3e4a0ca225 100644
--- a/src/features/DailyBrief/index.tsx
+++ b/src/features/DailyBrief/index.tsx
@@ -4,10 +4,9 @@ import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { useNavigate } from 'react-router-dom';
-import { DailyBriefRecommendations } from '@/business/client/DailyBriefRecommendations';
-import { useDailyBriefRecommendationsUI } from '@/business/client/useDailyBriefRecommendationsUI';
import TopicChatDrawer from '@/features/AgentTasks/AgentTaskDetail/TopicChatDrawer';
import DocumentPreviewModal from '@/features/DocumentModal/Preview';
+import Recommendations, { useRecommendationsVisible } from '@/features/Recommendations';
import GroupBlock from '@/routes/(main)/home/features/components/GroupBlock';
import { useBriefStore } from '@/store/brief';
import { briefListSelectors } from '@/store/brief/selectors';
@@ -26,7 +25,7 @@ const DailyBrief = memo(() => {
const briefs = useBriefStore(briefListSelectors.briefs);
const isInit = useBriefStore(briefListSelectors.isBriefsInit);
- const recState = useDailyBriefRecommendationsUI();
+ const recommendationsVisible = useRecommendationsVisible();
if (!isLogin) return null;
@@ -36,15 +35,15 @@ const DailyBrief = memo(() => {
<Flexbox gap={12}>
<BriefCardSkeleton />
<BriefCardSkeleton />
- <DailyBriefRecommendations state={recState} />
+ <Recommendations />
</Flexbox>
</GroupBlock>
);
}
- if (briefs.length === 0 && recState.mode === 'hidden') return null;
+ if (briefs.length === 0 && !recommendationsVisible) return null;
- const showViewAllTasks = briefs.length > 0 || recState.mode !== 'hidden';
+ const showViewAllTasks = briefs.length > 0 || recommendationsVisible;
return (
<GroupBlock
@@ -63,7 +62,7 @@ const DailyBrief = memo(() => {
{briefs.map((brief) => (
<BriefCard brief={brief} key={brief.id} />
))}
- <DailyBriefRecommendations state={recState} />
+ <Recommendations />
</Flexbox>
{briefs.length > 0 && (
<>
diff --git a/src/features/Recommendations/RecommendationCard.tsx b/src/features/Recommendations/RecommendationCard.tsx
new file mode 100644
index 00000000000..36f4d795dc9
--- /dev/null
+++ b/src/features/Recommendations/RecommendationCard.tsx
@@ -0,0 +1,95 @@
+import { Block, Button, Flexbox, Tag, Text } from '@lobehub/ui';
+import { App, Divider } from 'antd';
+import { cssVar, cx } from 'antd-style';
+import { memo, type ReactNode, useCallback, useState } from 'react';
+import { useTranslation } from 'react-i18next';
+
+import BriefCardSummary from '@/features/DailyBrief/BriefCardSummary';
+import { styles as briefStyles } from '@/features/DailyBrief/style';
+
+import { styles } from './style';
+
+interface RecommendationCardProps {
+ ctaKey: string;
+ descriptionKey: string;
+ i18nValues?: Record<string, string>;
+ icon: ReactNode;
+ /** Async handler for the primary CTA. */
+ onAction: () => Promise<void>;
+ tagKey?: string;
+ titleKey: string;
+}
+
+export const RecommendationCard = memo<RecommendationCardProps>(
+ ({ ctaKey, descriptionKey, i18nValues, icon, onAction, tagKey, titleKey }) => {
+ const { t } = useTranslation('home');
+ const { message } = App.useApp();
+ const [loading, setLoading] = useState(false);
+
+ const title = t(titleKey, { defaultValue: '', ...i18nValues });
+ const description = t(descriptionKey, { defaultValue: '', ...i18nValues });
+ const ctaLabel = t(ctaKey, { defaultValue: '', ...i18nValues });
+ const tagLabel = tagKey ? t(tagKey, { defaultValue: '', ...i18nValues }) : '';
+
+ const handleClick = useCallback(async () => {
+ if (loading) return;
+ setLoading(true);
+ try {
+ await onAction();
+ } catch (error) {
+ console.error('[recommendations] action failed:', error);
+ message.error(t('common.error', { defaultValue: 'Something went wrong' }));
+ } finally {
+ setLoading(false);
+ }
+ }, [loading, message, onAction, t]);
+
+ return (
+ <Block
+ className={cx(briefStyles.card, styles.card)}
+ gap={12}
+ padding={12}
+ style={{ borderRadius: cssVar.borderRadiusLG }}
+ variant={'outlined'}
+ >
+ <Flexbox horizontal align={'center'} gap={16} justify={'space-between'}>
+ <Flexbox
+ horizontal
+ align={'center'}
+ gap={8}
+ style={{ flex: 1, minWidth: 0, overflow: 'hidden' }}
+ >
+ {icon}
+ <Text ellipsis fontSize={16} weight={500}>
+ {title}
+ </Text>
+ </Flexbox>
+ </Flexbox>
+ <Divider dashed style={{ marginBlock: 0 }} />
+ {description.trim().length > 0 ? <BriefCardSummary summary={description} /> : null}
+ <Flexbox horizontal align={'center'} gap={8} justify={'space-between'} wrap={'wrap'}>
+ <Flexbox horizontal align={'center'} gap={8}>
+ {tagLabel ? (
+ <Tag size={'small'} variant={'outlined'}>
+ {tagLabel}
+ </Tag>
+ ) : null}
+ </Flexbox>
+ <Flexbox horizontal align={'center'} gap={8}>
+ <Button
+ shadow
+ className={briefStyles.actionBtnPrimary}
+ loading={loading}
+ shape={'round'}
+ onClick={handleClick}
+ >
+ {ctaLabel}
+ </Button>
+ </Flexbox>
+ </Flexbox>
+ </Block>
+ );
+ },
+);
+
+RecommendationCard.displayName = 'RecommendationCard';
diff --git a/src/features/Recommendations/actions/heteroAgent.ts b/src/features/Recommendations/actions/heteroAgent.ts
new file mode 100644
index 00000000000..01dff98ab5f
--- /dev/null
+++ b/src/features/Recommendations/actions/heteroAgent.ts
@@ -0,0 +1,42 @@
+import { type HeterogeneousAgentClientConfig } from '@lobechat/heterogeneous-agents/client';
+import { ClaudeCode, Codex } from '@lobehub/icons';
+import { createElement } from 'react';
+
+import type { RecommendedAction } from './types';
+
+const avatarIcons = {
+ 'claude-code': ClaudeCode.Avatar,
+ 'codex': Codex.Avatar,
+} as const satisfies Record<HeterogeneousAgentClientConfig['type'], unknown>;
+
+/**
+ * Build a "Add <Brand> agent" recommendation card for a heterogeneous CLI agent
+ * (Claude Code, Codex, …). Eligible only on desktop, when the local CLI is
+ * detected, and when the user hasn't already added an agent of that type.
+ */
+export const buildHeteroAgentAction = (
+ config: HeterogeneousAgentClientConfig,
+): RecommendedAction => {
+ const Avatar = avatarIcons[config.type];
+
+ return {
+ ctaKey: 'recommendations.heteroAgent.cta',
+ descriptionKey: 'recommendations.heteroAgent.description',
+ execute: (ctx) => ctx.createHeteroAgent(config),
+ i18nValues: { name: config.title },
+ icon: createElement(Avatar, {
+ shape: 'square',
+ size: 28,
+ style: { borderRadius: 8 },
+ }),
+ id: `hetero-agent:${config.type}`,
+ isEligible: (ctx) => {
+ if (!ctx.isDesktop) return false;
+ if (!ctx.heteroDetections[config.type]?.available) return false;
+ return !ctx.agents.some((a) => a.heterogeneousType === config.type);
+ },
+ priority: 10,
+ tagKey: 'recommendations.heteroAgent.tag',
+ titleKey: 'recommendations.heteroAgent.title',
+ };
+};
diff --git a/src/features/Recommendations/actions/registry.ts b/src/features/Recommendations/actions/registry.ts
new file mode 100644
index 00000000000..31ed8f205e7
--- /dev/null
+++ b/src/features/Recommendations/actions/registry.ts
@@ -0,0 +1,15 @@
+import { HETEROGENEOUS_AGENT_CLIENT_CONFIGS } from '@lobechat/heterogeneous-agents/client';
+
+import { buildHeteroAgentAction } from './heteroAgent';
+import type { RecommendedAction } from './types';
+
+/**
+ * Registry of all recommended actions. Add new actions here.
+ *
+ * Each action declares its own eligibility check and execution handler — the
+ * Recommendations container filters this list against the current
+ * {@link ActionContext} and renders the surviving entries.
+ */
+export const recommendedActionsRegistry: RecommendedAction[] = [
+ ...HETEROGENEOUS_AGENT_CLIENT_CONFIGS.map(buildHeteroAgentAction),
+];
diff --git a/src/features/Recommendations/actions/types.ts b/src/features/Recommendations/actions/types.ts
new file mode 100644
index 00000000000..faa7e9242ae
--- /dev/null
+++ b/src/features/Recommendations/actions/types.ts
@@ -0,0 +1,37 @@
+import type { HeterogeneousCliAgentType, ToolStatus } from '@lobechat/electron-client-ipc';
+import type { HeterogeneousAgentClientConfig } from '@lobechat/heterogeneous-agents/client';
+import type { SidebarAgentItem } from '@lobechat/types';
+import type { TFunction } from 'i18next';
+import type { ReactNode } from 'react';
+
+import type { CreateHeteroAgentOptions } from '@/hooks/useCreateHeteroAgent';
+
+export type HeteroDetectionMap = Partial<Record<HeterogeneousCliAgentType, ToolStatus>>;
+
+export interface ActionContext {
+ agents: SidebarAgentItem[];
+ createHeteroAgent: (
+ definition: HeterogeneousAgentClientConfig,
+ options?: CreateHeteroAgentOptions,
+ ) => Promise<void>;
+ /** Pre-fetched detection results for all hetero CLI types. Empty on web. */
+ heteroDetections: HeteroDetectionMap;
+ isDesktop: boolean;
+ t: TFunction<'home'>;
+}
+
+export interface RecommendedAction {
+ ctaKey: string;
+ descriptionKey: string;
+ execute: (ctx: ActionContext) => Promise<void>;
+ /** i18n interpolation values for title/description/cta */
+ i18nValues?: Record<string, string>;
+ icon: ReactNode;
+ id: string;
+ isEligible: (ctx: ActionContext) => boolean;
+ /** Higher = shown earlier. Defaults to 0. */
+ priority?: number;
+ tagKey?: string;
+
+ titleKey: string;
+}
diff --git a/src/features/Recommendations/hooks/useEligibleActions.ts b/src/features/Recommendations/hooks/useEligibleActions.ts
new file mode 100644
index 00000000000..c319c0d6604
--- /dev/null
+++ b/src/features/Recommendations/hooks/useEligibleActions.ts
@@ -0,0 +1,48 @@
+import { isDesktop } from '@lobechat/const';
+import { useMemo } from 'react';
+import { useTranslation } from 'react-i18next';
+
+import { useCreateHeteroAgent } from '@/hooks/useCreateHeteroAgent';
+import { useHomeStore } from '@/store/home';
+import { homeAgentListSelectors } from '@/store/home/selectors';
+
+import { recommendedActionsRegistry } from '../actions/registry';
+import type { ActionContext, RecommendedAction } from '../actions/types';
+import { useHeteroDetections } from './useHeteroDetections';
+
+interface EligibleActionsResult {
+ actions: (RecommendedAction & { run: () => Promise<void> })[];
+ context: ActionContext;
+}
+
+export const useEligibleActions = (): EligibleActionsResult => {
+ const { t } = useTranslation('home');
+ const agents = useHomeStore(homeAgentListSelectors.allAgents);
+ const heteroDetections = useHeteroDetections();
+ const createHeteroAgent = useCreateHeteroAgent();
+
+ const context = useMemo<ActionContext>(
+ () => ({
+ agents,
+ createHeteroAgent,
+ heteroDetections,
+ isDesktop,
+ t,
+ }),
+ [agents, createHeteroAgent, heteroDetections, t],
+ );
+
+ const actions = useMemo(
+ () =>
+ recommendedActionsRegistry
+ .filter((action) => action.isEligible(context))
+ .sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0))
+ .map((action) => ({
+ ...action,
+ run: () => action.execute(context),
+ })),
+ [context],
+ );
+
+ return { actions, context };
+};
diff --git a/src/features/Recommendations/hooks/useHeteroDetections.ts b/src/features/Recommendations/hooks/useHeteroDetections.ts
new file mode 100644
index 00000000000..84e3b9cd8fb
--- /dev/null
+++ b/src/features/Recommendations/hooks/useHeteroDetections.ts
@@ -0,0 +1,44 @@
+import { isDesktop } from '@lobechat/const';
+import type { ToolStatus } from '@lobechat/electron-client-ipc';
+import { HETEROGENEOUS_AGENT_CLIENT_CONFIGS } from '@lobechat/heterogeneous-agents/client';
+import useSWR from 'swr';
+
+import { toolDetectorService } from '@/services/electron/toolDetector';
+
+import type { HeteroDetectionMap } from '../actions/types';
+
+const SWR_KEY = 'recommendations.heteroDetections';
+
+/**
+ * Probe local Claude Code / Codex CLIs in parallel and cache the result.
+ *
+ * Returns an empty map on non-desktop runtimes so callers can skip without a
+ * branch on every read. The Electron tool detector caches its own results, so
+ * subsequent calls are cheap; we still wrap in SWR to dedupe across components.
+ */
+export const useHeteroDetections = (): HeteroDetectionMap => {
+ const { data } = useSWR(
+ isDesktop ? SWR_KEY : null,
+ async () => {
+ const entries = await Promise.all(
+ HETEROGENEOUS_AGENT_CLIENT_CONFIGS.map(async (config) => {
+ try {
+ const status = await toolDetectorService.detectHeterogeneousAgentCommand({
+ agentType: config.type,
+ command: config.command,
+ });
+ return [config.type, status] as const;
+ } catch (error) {
+ console.error(`[recommendations] hetero detection failed for ${config.type}:`, error);
+ const fallback: ToolStatus = { available: false, error: String(error) };
+ return [config.type, fallback] as const;
+ }
+ }),
+ );
+ return Object.fromEntries(entries) as HeteroDetectionMap;
+ },
+ { revalidateOnFocus: false, revalidateOnReconnect: false },
+ );
+
+ return data ?? {};
+};
diff --git a/src/features/Recommendations/index.tsx b/src/features/Recommendations/index.tsx
new file mode 100644
index 00000000000..2390f49c206
--- /dev/null
+++ b/src/features/Recommendations/index.tsx
@@ -0,0 +1,58 @@
+import { Flexbox, Text } from '@lobehub/ui';
+import { memo } from 'react';
+import { useTranslation } from 'react-i18next';
+
+import { DailyBriefRecommendations } from '@/business/client/DailyBriefRecommendations';
+import {
+ type DailyBriefRecommendationsUIState,
+ useDailyBriefRecommendationsUI,
+} from '@/business/client/useDailyBriefRecommendationsUI';
+
+import { useEligibleActions } from './hooks/useEligibleActions';
+import { RecommendationCard } from './RecommendationCard';
+import { styles } from './style';
+
+const isTaskTemplatesVisible = (state: DailyBriefRecommendationsUIState): boolean =>
+ state.mode !== 'hidden';
+
+export const useRecommendationsVisible = (): boolean => {
+ const taskTemplatesState = useDailyBriefRecommendationsUI();
+ const { actions } = useEligibleActions();
+ return actions.length > 0 || isTaskTemplatesVisible(taskTemplatesState);
+};
+
+const Recommendations = memo(() => {
+ const { t } = useTranslation('home');
+ const taskTemplatesState = useDailyBriefRecommendationsUI();
+ const { actions } = useEligibleActions();
+
+ const showTaskTemplates = isTaskTemplatesVisible(taskTemplatesState);
+ if (actions.length === 0 && !showTaskTemplates) return null;
+
+ return (
+ <Flexbox gap={12}>
+ <Text className={styles.subtitle} fontSize={12}>
+ {t('recommendations.subtitle')}
+ </Text>
+ <Flexbox gap={8}>
+ {actions.map((action) => (
+ <RecommendationCard
+ ctaKey={action.ctaKey}
+ descriptionKey={action.descriptionKey}
+ i18nValues={action.i18nValues}
+ icon={action.icon}
+ key={action.id}
+ tagKey={action.tagKey}
+ titleKey={action.titleKey}
+ onAction={action.run}
+ />
+ ))}
+ {showTaskTemplates ? <DailyBriefRecommendations state={taskTemplatesState} /> : null}
+ </Flexbox>
+ </Flexbox>
+ );
+});
+
+Recommendations.displayName = 'Recommendations';
+
+export default Recommendations;
diff --git a/src/features/Recommendations/style.ts b/src/features/Recommendations/style.ts
new file mode 100644
index 00000000000..0b84bb618af
--- /dev/null
+++ b/src/features/Recommendations/style.ts
@@ -0,0 +1,12 @@
+import { createStaticStyles } from 'antd-style';
+
+export const styles = createStaticStyles(({ css, cssVar }) => ({
+ card: css`
+ &:hover {
+ border-color: ${cssVar.colorBorder} !important;
+ }
+ `,
+ subtitle: css`
+ color: ${cssVar.colorTextDescription};
+ `,
+}));
diff --git a/src/hooks/useCreateHeteroAgent.ts b/src/hooks/useCreateHeteroAgent.ts
new file mode 100644
index 00000000000..b45d8095a0d
--- /dev/null
+++ b/src/hooks/useCreateHeteroAgent.ts
@@ -0,0 +1,45 @@
+import { type HeterogeneousAgentClientConfig } from '@lobechat/heterogeneous-agents/client';
+import { useCallback } from 'react';
+import { useNavigate } from 'react-router-dom';
+
+import { useAgentStore } from '@/store/agent';
+import { useHomeStore } from '@/store/home';
+
+export interface CreateHeteroAgentOptions {
+ groupId?: string;
+ onSuccess?: () => void;
+}
+
+/**
+ * Create a heterogeneous agent (CLI-backed: Claude Code, Codex, …) and navigate
+ * straight to the chat page. Skips the standard /profile redirect because the
+ * external CLI runtime has a fixed config — there's nothing to edit upfront.
+ */
+export const useCreateHeteroAgent = () => {
+ const storeCreateAgent = useAgentStore((s) => s.createAgent);
+ const refreshAgentList = useHomeStore((s) => s.refreshAgentList);
+ const navigate = useNavigate();
+
+ return useCallback(
+ async (definition: HeterogeneousAgentClientConfig, options?: CreateHeteroAgentOptions) => {
+ const result = await storeCreateAgent({
+ config: {
+ agencyConfig: {
+ heterogeneousProvider: {
+ command: definition.command,
+ type: definition.type,
+ },
+ },
+ avatar: definition.avatar,
+ systemRole: '',
+ title: definition.title,
+ },
+ groupId: options?.groupId,
+ });
+ await refreshAgentList();
+ navigate(`/agent/${result.agentId}`);
+ options?.onSuccess?.();
+ },
+ [storeCreateAgent, refreshAgentList, navigate],
+ );
+};
diff --git a/src/locales/default/home.ts b/src/locales/default/home.ts
index 79d99d04782..fea1b7582af 100644
--- a/src/locales/default/home.ts
+++ b/src/locales/default/home.ts
@@ -27,6 +27,12 @@ export default {
'project.create': 'New project',
'project.deleteConfirm':
"This project will be deleted and can't be recovered. Confirm to continue.",
+ 'recommendations.heteroAgent.cta': 'Add Agent',
+ 'recommendations.heteroAgent.description':
+ 'Detected the {{name}} CLI on this device — add {{name}} agent to chat with it from LobeHub.',
+ 'recommendations.heteroAgent.tag': 'Coding Agent',
+ 'recommendations.heteroAgent.title': 'Add {{name}} agent',
+ 'recommendations.subtitle': 'Some recommendations for your setup',
'starter.createAgent': 'Create Agent',
'starter.createGroup': 'Create Group',
'starter.deepResearch': 'Deep Research',
diff --git a/src/routes/(main)/home/_layout/hooks/useCreateMenuItems.tsx b/src/routes/(main)/home/_layout/hooks/useCreateMenuItems.tsx
index 5aa99b76c24..e8615233108 100644
--- a/src/routes/(main)/home/_layout/hooks/useCreateMenuItems.tsx
+++ b/src/routes/(main)/home/_layout/hooks/useCreateMenuItems.tsx
@@ -12,6 +12,7 @@ import useSWRMutation from 'swr/mutation';
import { useGroupTemplates } from '@/components/ChatGroupWizard/templates';
import { DEFAULT_CHAT_GROUP_CHAT_CONFIG } from '@/const/settings';
+import { useCreateHeteroAgent } from '@/hooks/useCreateHeteroAgent';
import { useOptionalAgentModal } from '@/routes/(main)/home/_layout/Body/Agent/ModalProvider';
import type { CreateAgentParams } from '@/services/agent';
import type { GroupMemberConfig } from '@/services/chatGroup';
@@ -46,6 +47,7 @@ export const useCreateMenuItems = () => {
]);
const [createGroup, loadGroups] = useAgentGroupStore((s) => [s.createGroup, s.loadGroups]);
const createNewPage = usePageStore((s) => s.createNewPage);
+ const createHeterogeneousAgent = useCreateHeteroAgent();
const [isCreatingGroup, setIsCreatingGroup] = useState(false);
const [isCreatingSessionGroup, setIsCreatingSessionGroup] = useState(false);
@@ -194,38 +196,6 @@ export const useCreateMenuItems = () => {
[mutateGroup],
);
- /**
- * Create a heterogeneous agent with CLI provider pre-configured.
- *
- * Bypasses `mutateAgent` so we skip its default /profile redirect —
- * external CLI agents land straight on the chat page since their config is fixed.
- */
- const createHeterogeneousAgent = useCallback(
- async (
- definition: (typeof HETEROGENEOUS_AGENT_CLIENT_CONFIGS)[number],
- options?: CreateAgentOptions,
- ) => {
- const result = await storeCreateAgent({
- config: {
- agencyConfig: {
- heterogeneousProvider: {
- command: definition.command,
- type: definition.type,
- },
- },
- avatar: definition.avatar,
- systemRole: '',
- title: definition.title,
- },
- groupId: options?.groupId,
- });
- await refreshAgentList();
- navigate(`/agent/${result.agentId}`);
- options?.onSuccess?.();
- },
- [storeCreateAgent, refreshAgentList, navigate],
- );
-
const agentModal = useOptionalAgentModal();
const openCreateModal = agentModal?.openCreateModal;