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.

591 B
Raw Blame
import { createModal } from '@lobehub/ui';
import { t } from 'i18next';

import Content from './Content';

/**
 * Import local CLI agent sessions (Claude Code / Codex) into the given agent.
 * Desktop-only: discovery runs over IPC in the Electron main process.
 */
export const openHeteroSessionImportModal = (options: { agentId: string }) => {
  createModal({
    content: <Content agentId={options.agentId} />,
    footer: null,
    maskClosable: false,
    styles: { content: { padding: 0 } },
    title: t('heteroImport.title', { ns: 'topic' }),
    width: 'min(92vw, 1080px)',
  });
};