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
review: align _bindChatPasteAttach to selector + tighten _showCommanderProjectPicker why-comment
wytc339cd852a86
diff --git a/src/renderer/modules/conversation.js b/src/renderer/modules/conversation.jsindex 9130c853..dc6e0708 100644--- a/src/renderer/modules/conversation.js+++ b/src/renderer/modules/conversation.js@@ -1150,8 +1150,8 @@ function _hydrateMessageAttachmentThumbs(msgDiv, _cid) {// the OS clipboard (Cmd/Ctrl+Shift+screenshot) and files copied from Finder// / Explorer both land in `clipboardData.files`. Plain-text pastes have an// empty FileList and fall through to the textarea's native paste handler.-function _bindChatPasteAttach(inputElId, getCid) {- const el = document.getElementById(inputElId);+function _bindChatPasteAttach(inputSelector, getCid) {+ const el = document.querySelector(inputSelector);if (!el || el.dataset.pasteBound === '1') return;el.addEventListener('paste', (e) => {const cid = getCid();@@ -1213,7 +1213,7 @@ function _initChatAttachInput() {await _chatAttachUpload(currentCid, input.files);input.value = '';});- _bindChatPasteAttach('chat-input', () => currentCid);+ _bindChatPasteAttach('#chat-input', () => currentCid);_bindChatDropAttach('.chat-input-area', () => currentCid);btn.dataset.bound = '1';}@@ -1234,7 +1234,7 @@ function _initNewChatAttachInput() {await _chatAttachUpload(DRAFT_CID, input.files);input.value = '';});- _bindChatPasteAttach('new-chat-input', () => DRAFT_CID);+ _bindChatPasteAttach('#new-chat-input', () => DRAFT_CID);_bindChatDropAttach('.new-chat-input-area', () => DRAFT_CID);btn.dataset.bound = '1';}diff --git a/src/renderer/modules/projects.js b/src/renderer/modules/projects.jsindex 7dd3a375..cc9fdb09 100644--- a/src/renderer/modules/projects.js+++ b/src/renderer/modules/projects.js@@ -653,14 +653,17 @@ function onEnterCommanderProjectChip() {}/** User clicked the commander chip → show a small popover listing- * None + every existing project. Style mirrors the workspace dropdown. */+ * None + every existing project. Reuses `.workspace-menu` (not+ * `_aiSelectMount`) because this is a chip-row popover anchored next to+ * the workspace chip — `_aiSelectMount` targets in-form dropdowns with+ * different chrome (border / hover state / row height). */function _showCommanderProjectPicker(anchor) {const old = document.getElementById('commander-project-picker');if (old) { old.remove(); return; }const menu = document.createElement('div');menu.id = 'commander-project-picker';- menu.className = 'workspace-menu'; // reuse styling+ menu.className = 'workspace-menu';anchor.classList.add('chat-project-chip--open');const items = [