Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.
JavaScript agent-collaborationagent-harnessagent-orchestrationagent-teamagent-workflowai-assistantai-automationai-employeeai-productivityai-teamai-workflowautonomous-agentsclaude-code-guiclaude-coworkdesktop-agentlocal-firstmulti-agentmulti-agent-systemself-evolving-agentstask-automation
Surface a visible error bubble + state_changed when an agent fails to load mid-turn
wyte0574e2bb6fd
diff --git a/src/main/features/group_chat/bus.ts b/src/main/features/group_chat/bus.tsindex 149b2fba..970514bb 100644--- a/src/main/features/group_chat/bus.ts+++ b/src/main/features/group_chat/bus.ts@@ -772,7 +772,25 @@ async function runTurn(state: CidState, w: WorkerState, item: QueueItem): Promisconst agent = await agentsFeat.getAgent(actor.id);if (!agent) {log.warn(`agent ${actor.id} disappeared mid-turn`);+ // User-visible signal — without this the user's @-dispatch hangs+ // forever with no feedback (in-flight cleared, no bubble surfaces).+ // Spec was unloadable (deleted / corrupt JSON / missing file); the+ // members roster still carries the human-readable name, so we+ // surface that to the user.+ const roster = await readMembers(uid, cid).catch(() => null);+ const member = roster?.actors.find((a) => a.id === actor.id);+ const name = member?.name || actor.id;+ const errBubble = `<span style="color:var(--danger)">${escapeHtmlForBubble(t('chat.agent_load_failed', { name }))}</span>`;+ await enqueue({+ uid, cid,+ fromActorId: actor.id,+ text: errBubble,+ forceTo: [USER_ID],+ turn_end: true,+ ...(typeof item.triggered_step === 'number' ? { triggered_step: item.triggered_step } : {}),+ });await markInFlight(uid, cid, actor.id, false);+ emit(state, { type: 'state_changed', cid, state: await readState(uid, cid) });// Note: runWorkerLoop owns w.running — its finally clears the flag// when this returns. We DON'T touch it here.return;diff --git a/src/main/locales/en.json b/src/main/locales/en.jsonindex 38bb8dd3..dfa7587f 100644--- a/src/main/locales/en.json+++ b/src/main/locales/en.json@@ -79,6 +79,7 @@"model.retrying_n": "Retry attempt {attempt}","model.aborted": "(stopped)","cli_agent.missing": "⚠️ Agent “{name}” needs the local CLI “{cli}” which isn’t installed. Install it and retry, or switch the agent to another type.",+ "chat.agent_load_failed": "⚠️ Agent “{name}” failed to load — its config file may be corrupt or removed. Visit the agents page to inspect, repair, or rebuild it.","agent.cli.project_dir.label": "Project directory","chat.commander_dispatch_only": "Forwarded to {agents}.","plan.announcement.heading": "I'll proceed with the following steps:",diff --git a/src/main/locales/zh.json b/src/main/locales/zh.jsonindex ff2f6b3f..5d0d7b7c 100644--- a/src/main/locales/zh.json+++ b/src/main/locales/zh.json@@ -79,6 +79,7 @@"model.retrying_n": "正在第 {attempt} 次重试","model.aborted": "(已中断)","cli_agent.missing": "⚠️ 智能体「{name}」依赖的本地 CLI「{cli}」未安装。请安装该 CLI 后重试,或在编辑面板换成其他类型。",+ "chat.agent_load_failed": "⚠️ 智能体「{name}」加载失败:配置文件可能损坏或已被删除。请前往智能体页面检查、修复或重建。","agent.cli.project_dir.label": "项目目录","chat.commander_dispatch_only": "已转给 {agents}。","plan.announcement.heading": "我准备按下面的步骤推进:",