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
fix(library): accept IPC status snapshots
CloudTianTiand102fdc2f8bf
diff --git a/src/renderer/modules/contexts.js b/src/renderer/modules/contexts.jsindex b3da9e00..d4f8a4a5 100644--- a/src/renderer/modules/contexts.js+++ b/src/renderer/modules/contexts.js@@ -71,7 +71,7 @@ function _buildKbStatusMap(tree, statusRows) {}function _applyKbStatusResult(data) {- if (data && data.ok) {+ if (data && data.ok !== false && Array.isArray(data.files)) {_kbUnavailableCode = '';_kbUnavailableReportedCode = '';return true;diff --git a/test/renderer/contexts-external-drop.test.ts b/test/renderer/contexts-external-drop.test.tsindex 5c12882e..4fe48bd2 100644--- a/test/renderer/contexts-external-drop.test.ts+++ b/test/renderer/contexts-external-drop.test.ts@@ -102,6 +102,14 @@ function dropEvent(dataTransfer: any, closestEntry: any = null) {}describe('Library external file drag-and-drop', () => {+ it('accepts the successful KB status snapshot returned by the IPC handler', () => {+ const context = loadContextsScript();++ expect(context._applyKbStatusResult({ summary: { ready: 0 }, files: [] })).toBe(true);+ expect(context._kbUnavailableHtml()).toBe('');+ expect(context.__monitorError).not.toHaveBeenCalled();+ });+it('keeps files usable and exposes storage-full recovery guidance when KB startup fails', () => {const context = loadContextsScript();