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
Refresh agent / skill caches on the fallback message path; honor forceRefresh in loadSkills
wytf59b8ba956e5
diff --git a/src/renderer/modules/conversation.js b/src/renderer/modules/conversation.jsindex 87571854..f75a1aa1 100644--- a/src/renderer/modules/conversation.js+++ b/src/renderer/modules/conversation.js@@ -3339,6 +3339,15 @@ function _handleGroupBusEvent(cid, streamingMsg, evData, { archive = false } = {const legacy = _groupMsgToLegacy(gm);const bubble = appendChatMessage(legacy, true, { cid, archive });if (bubble) bubble.dataset.fromActor = String(gm.from || '');+ // Cache-refresh parity with `_mountCreatedAgentChip`: the placeholder+ // path goes through it (which calls loadAgents/loadSkills(true)),+ // but this fallback runs appendChatMessage directly which only+ // paints the chip — without this hop, fast turns that emit zero+ // process events leave _agentsCache / _skillsCache stale, so the+ // newly-created agent is missing from the agents tab and the @+ // picker until a manual refresh.+ if (_normalizeCreatedAgents(gm)) { try { loadAgents?.(true); } catch (_) {} }+ if (_normalizeCreatedSkills(gm)) { try { loadSkills?.(true); } catch (_) {} }}} else {// Mid-turn message — append a new bubble alongside, leave thediff --git a/src/renderer/modules/skills.js b/src/renderer/modules/skills.jsindex 11f30ff5..18f298ae 100644--- a/src/renderer/modules/skills.js+++ b/src/renderer/modules/skills.js@@ -21,8 +21,8 @@ window.addEventListener('i18n-change', () => {let _expandedDirs = new Set(); // keys like "source:id" or "source:id/subdir"let _skillTreeCache = new Map(); // key: "source:id" → tree array-async function loadSkills() {- if (_skillsCache) { renderSkillsList(_skillsCache); return; }+async function loadSkills(forceRefresh) {+ if (_skillsCache && !forceRefresh) { renderSkillsList(_skillsCache); return; }try {const res = await apiFetch('/api/skills/list');const data = await res.json();