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
Read field.default on agent input form when no submission has happened
claw2b48a6bdd227f
diff --git a/src/renderer/modules/chat-input-form.js b/src/renderer/modules/chat-input-form.jsindex 6da7a646..c5e65715 100644--- a/src/renderer/modules/chat-input-form.js+++ b/src/renderer/modules/chat-input-form.js@@ -396,14 +396,17 @@onChange: () => _refreshSubmitState(),};for (const f of form.fields) {- const presetValue = submitted && form.values- && Object.prototype.hasOwnProperty.call(form.values, f.id)- ? form.values[f.id]- : undefined;- const built = _buildField(f, fieldCtx, {- presetValue,- disabled: submitted,- });+ // Only attach `presetValue` when we actually have one — `_buildField`+ // checks `hasOwnProperty('presetValue')` to distinguish "user explicitly+ // cleared this field" (preset = '' / 0 / false / []) from "no preset,+ // fall back to field.default". Passing the key with value `undefined`+ // would defeat that and hide the schema-defined defaults.+ const buildOpts = { disabled: submitted };+ if (submitted && form.values+ && Object.prototype.hasOwnProperty.call(form.values, f.id)) {+ buildOpts.presetValue = form.values[f.id];+ }+ const built = _buildField(f, fieldCtx, buildOpts);fields.push(built);bodyEl.appendChild(built.el);}