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(skills/agents): abort in-flight edit-chat stream on exit; align SKILL.md textarea width
aiservice4fb81681d06c
diff --git a/src/renderer/modules/agents.js b/src/renderer/modules/agents.jsindex 85d31a0f..4ae49dae 100644--- a/src/renderer/modules/agents.js+++ b/src/renderer/modules/agents.js@@ -516,6 +516,10 @@ async function _enterAgentEditMode() {async function _exitAgentEditMode() {_agentEditing = false;+ // Abort any in-flight reply so 完成 stops the stream immediately. The+ // agent chat controller is a singleton; leaving it pending also leaks the+ // streaming-button state into the next agent's edit panel.+ try { _agentChatCtrl?.abort(); } catch (_) { /* ignore */ }// Flush any pending save and then re-render in readonly mode.await _flushAgentFieldSave();document.getElementById('agents-chat-col').style.display = 'none';diff --git a/src/renderer/modules/skills.js b/src/renderer/modules/skills.jsindex 84a9f088..15c32e9d 100644--- a/src/renderer/modules/skills.js+++ b/src/renderer/modules/skills.js@@ -197,6 +197,9 @@ function _showSkillsGridView() {const detail = document.getElementById('skills-detail-view');// Exit edit mode if active so chat panel is hidden too.if (_skillEditMode) {+ // Abort any in-flight reply (same reason as toggleSkillEditMode exit+ // branch — singleton controller, leaving pending leaks streaming UI).+ try { _skillChatCtrl?.abort(); } catch (_) { /* ignore */ }_skillEditMode = false;_skillEditSkillId = null;const chatCol = document.getElementById('skills-chat-col');@@ -633,6 +636,12 @@ async function selectSkillFile(source, id, filepath, nodeEl) {if (_skillEditMode && _skillEditSkillId === id && canEditThisSkill) {chatCol.style.display = 'flex';} else {+ // Switching skill mid-stream needs to abort, otherwise the singleton+ // controller's pending state bleeds into the next skill's edit panel+ // (the send button shows streaming for a fresh chat).+ if (_skillEditMode) {+ try { _skillChatCtrl?.abort(); } catch (_) { /* ignore */ }+ }_skillEditMode = false;_skillEditSkillId = null;chatCol.style.display = 'none';@@ -889,6 +898,11 @@ async function toggleSkillEditMode(opts = {}) {if (_selectedSkill.source !== 'custom'&& !(_selectedSkill.source === 'builtin' && isDevMode())) return;if (_skillEditMode && _skillEditSkillId === _selectedSkill.id) {+ // Abort any in-flight reply so 完成 is "stop + exit", not "exit but+ // keep streaming". The chat controller is a singleton; leaving it+ // pending also leaks the streaming-button state into the next skill's+ // edit panel when the user clicks 编辑 elsewhere.+ try { _skillChatCtrl?.abort(); } catch (_) { /* ignore */ }_skillEditMode = false;_skillEditSkillId = null;document.getElementById('skills-chat-col').style.display = 'none';diff --git a/src/renderer/style.css b/src/renderer/style.cssindex 25cd8962..6159fbf1 100644--- a/src/renderer/style.css+++ b/src/renderer/style.css@@ -1221,11 +1221,14 @@ body.model-not-configured .main-content { flex-direction: column; }.skills-source-tree::-webkit-scrollbar { width: 4px; }.skills-source-tree::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 3px; }-/* Inline file editor (skill edit mode) */+/* Inline file editor (skill edit mode). No L/R padding here — the textarea+ * owns its visual border + inner padding and sits flush with the section+ * edge, the same way `.skills-source-panel` above it does. T/B padding is+ * kept tiny so the toolbar status row has a little breathing room. */.skills-detail-body.skills-detail-editing {display: flex;flex-direction: column;- padding: 16px 20px 20px;+ padding: 4px 0 0;}.skill-file-toolbar {display: flex;