Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(workbench): report the real imported count on agent import
cyh53aa356a0d1a
diff --git a/ui/src/components/workbench/AgentsPage.tsx b/ui/src/components/workbench/AgentsPage.tsxindex 9d76bd4a8..e24d522f9 100644--- a/ui/src/components/workbench/AgentsPage.tsx+++ b/ui/src/components/workbench/AgentsPage.tsx@@ -192,9 +192,12 @@ export const AgentsPage: React.FC = () => {try {const result = await api.importVibeAgents({ from, all: true });if (result.ok) {- const created = result.created?.length ?? 0;+ // Backend returns newly imported agents under `imported` (see+ // vibe/api.py::import_vibe_agents); `created` was always undefined so+ // the toast reported 0 even on a successful import.+ const imported = result.imported?.length ?? 0;const skipped = result.skipped?.length ?? 0;- showToast(t('agents.importSuccess', { created, skipped }), 'success');+ showToast(t('agents.importSuccess', { imported, skipped }), 'success');refresh();} else {showToast(diff --git a/ui/src/context/ApiContext.tsx b/ui/src/context/ApiContext.tsxindex 32b0779ce..d6aa5c405 100644--- a/ui/src/context/ApiContext.tsx+++ b/ui/src/context/ApiContext.tsx@@ -113,7 +113,7 @@ export type ApiContextType = {updateVibeAgent: (name: string, payload: VibeAgentUpdatePayload) => Promise<{ ok: boolean; agent: VibeAgentFull }>;setDefaultVibeAgent: (name: string) => Promise<{ ok: boolean; default_agent_name: string; agent: VibeAgentBrief }>;removeVibeAgent: (name: string) => Promise<{ ok: boolean; code?: string; message?: string; references?: Record<string, number>; removed_agent?: string }>;- importVibeAgents: (payload: { from?: 'claude' | 'codex' | 'opencode'; name?: string; all?: boolean; file?: string; backend?: string }) => Promise<{ ok: boolean; created?: any[]; skipped?: any[]; error?: string; code?: string; message?: string }>;+ importVibeAgents: (payload: { from?: 'claude' | 'codex' | 'opencode'; name?: string; all?: boolean; file?: string; backend?: string }) => Promise<{ ok: boolean; imported?: any[]; skipped?: any[]; error?: string; code?: string; message?: string }>;listHarnessTasks: () => Promise<{ tasks: HarnessTask[] }>;setHarnessTaskEnabled: (taskId: string, enabled: boolean) => Promise<{ ok: boolean; task?: HarnessTask }>;deleteHarnessTask: (taskId: string) => Promise<{ ok: boolean; id?: string }>;diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.jsonindex 97a90c7f7..1adef0733 100644--- a/ui/src/i18n/en.json+++ b/ui/src/i18n/en.json@@ -1239,7 +1239,7 @@"importFromClaude": "Import from Claude","importFromCodex": "Import from Codex","importFromOpenCode": "Import from OpenCode",- "importSuccess": "Imported {{created}}, skipped {{skipped}}.",+ "importSuccess": "Imported {{imported}}, skipped {{skipped}}.","importFailed": "Import failed: {{error}}","searchPlaceholder": "Search agents…","backendFilter": "Backend",diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.jsonindex 53acc48fe..f0b11bbd7 100644--- a/ui/src/i18n/zh.json+++ b/ui/src/i18n/zh.json@@ -1239,7 +1239,7 @@"importFromClaude": "从 Claude 导入","importFromCodex": "从 Codex 导入","importFromOpenCode": "从 OpenCode 导入",- "importSuccess": "已导入 {{created}} 个,跳过 {{skipped}} 个。",+ "importSuccess": "已导入 {{imported}} 个,跳过 {{skipped}} 个。","importFailed": "导入失败:{{error}}","searchPlaceholder": "搜索 Agent…","backendFilter": "Backend",