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
Switch agent-input-form select fields to the shared _aiSelectMount widget
wyt9523ed840fbf
diff --git a/src/renderer/modules/chat-input-form.js b/src/renderer/modules/chat-input-form.jsindex d76ad335..4966a3b5 100644--- a/src/renderer/modules/chat-input-form.js+++ b/src/renderer/modules/chat-input-form.js@@ -76,18 +76,29 @@ctrlWrap.appendChild(ta);read = () => ta.value;} else if (field.type === 'select') {- const sel = document.createElement('select');- sel.className = 'form-field-input form-field-select';- for (const opt of (field.options || [])) {- const o = document.createElement('option');- o.value = opt.value;- o.textContent = opt.label || opt.value;- if (opt.value === initial) o.selected = true;- sel.appendChild(o);- }- if (disabled) sel.disabled = true;+ // Use the shared `_aiSelectMount` widget instead of native <select>.+ // Native chrome looks dated next to the rest of the app, and the+ // settings/agent-edit pages already standardised on AiSelect.+ // The submit-time form lock (`f.el.querySelectorAll('button')` →+ // `disabled = true`) catches the trigger button, so no extra+ // disabled wiring is needed beyond the initial-state branch below.+ const sel = document.createElement('div');ctrlWrap.appendChild(sel);- read = () => sel.value;+ const aiSel = _aiSelectMount(sel, {+ placeholder: field.placeholder || undefined,+ });+ const options = (field.options || []).map((o) => ({+ value: o.value,+ label: o.label || o.value,+ }));+ aiSel.setOptions(options, {+ value: typeof initial === 'string' ? initial : '',+ });+ if (disabled) {+ const trigger = sel.querySelector('.ai-select-trigger');+ if (trigger) trigger.disabled = true;+ }+ read = () => aiSel.getValue();} else if (field.type === 'multiselect') {// Checkbox group — clearer than <select multiple>, also better on mobile.const wrap = document.createElement('div');diff --git a/src/renderer/style.css b/src/renderer/style.cssindex 1d27774d..ad4aebdb 100644--- a/src/renderer/style.css+++ b/src/renderer/style.css@@ -2136,6 +2136,15 @@ body.model-not-configured .main-content { flex-direction: column; }}.chat-input-form .form-field-textarea { min-height: 56px; resize: vertical; }.chat-input-form .form-field-select { cursor: pointer; }+/* form fields use the shared AiSelect for dropdowns; default is+ * inline-block + min-width:180px which leaves it narrower than the+ * sibling textarea/text-input. Make it block-level so it fills the+ * form-field-ctrl column. */+.chat-input-form .form-field-ctrl > .ai-select {+ display: block;+ min-width: 0;+ width: 100%;+}.chat-input-form .form-field-checkgroup {display: flex;flex-wrap: wrap;@@ -2153,7 +2162,8 @@ body.model-not-configured .main-content { flex-direction: column; }cursor: pointer;accent-color: var(--primary);}-.chat-input-form .form-field.is-error .form-field-input {+.chat-input-form .form-field.is-error .form-field-input,+.chat-input-form .form-field.is-error .ai-select .ai-select-trigger {border-color: var(--danger);}.chat-input-form .form-error {@@ -2253,7 +2263,9 @@ body.model-not-configured .main-content { flex-direction: column; }border-color: rgba(148, 163, 184, 0.35);}.chat-input-form.is-submitted .form-field-input,-.chat-input-form.is-submitted .form-field-input:focus {+.chat-input-form.is-submitted .form-field-input:focus,+.chat-input-form.is-submitted .ai-select .ai-select-trigger,+.chat-input-form.is-submitted .ai-select .ai-select-trigger:focus {background: rgba(255, 255, 255, 0.6);color: var(--text);cursor: default;