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
Sync new chat home UI updates
wyt10e5c78f815b
diff --git a/src/renderer/index.html b/src/renderer/index.htmlindex 949a7b6c..884f7bce 100644--- a/src/renderer/index.html+++ b/src/renderer/index.html@@ -71,6 +71,13 @@Greeting is filled in by JS lifecycle hooks; see_refreshEmptyStateGreeting. --><section class="panel active" id="panel-new-chat">+ <button type="button" class="new-chat-external-agent-btn" id="new-chat-external-agent-btn">+ <span data-ui-icon="terminal" data-ui-icon-class="new-chat-external-agent-icon"></span>+ <span class="new-chat-external-agent-label">+ <span data-i18n="new_chat.external_agent_entry">Connect Codex, Claude Code & other AI coding tools</span>+ <span data-ui-icon="arrow-right" data-ui-icon-class="new-chat-external-agent-arrow"></span>+ </span>+ </button><div class="new-chat-center"><div class="new-chat-header"><h1 class="new-chat-greeting" id="new-chat-greeting"></h1>@@ -85,14 +92,15 @@<div class="chat-input-overlay"><div class="chat-attachments" id="new-chat-attachments" style="display:none"></div></div>- <textarea id="new-chat-input" data-i18n-placeholder="new_chat.input_placeholder" placeholder="Type @ to choose agents, skills, connectors." rows="2"></textarea>+ <textarea id="new-chat-input" data-i18n-placeholder="new_chat.input_placeholder" placeholder="Type @ to choose agents, skills, connectors, Library files." rows="2"></textarea><!-- Composer bottom bar order matches PC/docs/design/PATTERNS.mdP11: [+] | divider | [To] | [workspace - JS-injected] |- [skill] | spacer | [send]. right by `chat-send-btn { margin-left: auto }`. -->+ [skill] | spacer | [send]. The open-source build strips+ voice input, so send owns the right spacer. --><div class="chat-bottom-bar"><button type="button" class="chat-attach-btn" id="new-chat-attach-btn" data-i18n-title="new_chat.attach_title" title="Upload attachment (text / PDF / Word / image / video)">+</button><span class="chat-composer-divider" aria-hidden="true"></span>- <button type="button" class="chat-recipient-chip" id="new-chat-recipient-chip" data-i18n-title="chat.recipient_picker_title" title="Choose agent, skill, or connector">+ <button type="button" class="chat-recipient-chip" id="new-chat-recipient-chip" data-i18n-title="chat.recipient_picker_title_with_library" title="Choose agent, skill, connector, or Library file"><span class="chat-recipient-prefix" data-i18n="chat.recipient_label">To: </span><span class="chat-recipient-name" id="new-chat-recipient-name" data-i18n="chat.recipient_commander">Commander</span></button>@@ -102,7 +110,9 @@sync without duplicating the markup. --><div class="chat-skill-chip" id="new-chat-skill-chip" data-target="new-chat" style="display:none"><span class="chip-label"></span>- <span class="chip-close" data-i18n-title="chat.chip_remove_title" title="Remove">×</span>+ <button type="button" class="chip-close" data-i18n-title="chat.chip_remove_title" data-i18n-aria-label="chat.chip_remove_title" title="Remove" aria-label="Remove">+ <span data-ui-icon="x" data-ui-icon-class="chip-close-icon"></span>+ </button></div><button id="new-chat-send-btn" class="chat-send-btn" data-i18n-title="new_chat.send_title" title="Send"><span data-ui-icon="send" data-ui-icon-class="send-icon"></span>@@ -115,30 +125,30 @@the caret to the first [...] placeholder. Wired by_initEmptyStateScenarios() in conversation.js. --><div class="new-chat-scenarios" id="new-chat-scenarios">- <button type="button" class="new-chat-scenario-chip" data-scenario="education">- <span data-ui-icon="book-open" data-ui-icon-class="new-chat-scenario-icon"></span>- <span class="new-chat-scenario-label" data-i18n="new_chat.quick.education">Learning</span>- </button>- <button type="button" class="new-chat-scenario-chip" data-scenario="ecommerce">+ <button type="button" class="new-chat-scenario-chip" data-scenario="data"><span data-ui-icon="search" data-ui-icon-class="new-chat-scenario-icon"></span>- <span class="new-chat-scenario-label" data-i18n="new_chat.quick.ecommerce">Ecommerce</span>- </button>- <button type="button" class="new-chat-scenario-chip" data-scenario="rnd">- <span data-ui-icon="code" data-ui-icon-class="new-chat-scenario-icon"></span>- <span class="new-chat-scenario-label" data-i18n="new_chat.quick.rnd">Build app</span>+ <span class="new-chat-scenario-label" data-i18n="new_chat.quick.data">Research</span></button>- <button type="button" class="new-chat-scenario-chip" data-scenario="creation">- <span data-ui-icon="document-pencil" data-ui-icon-class="new-chat-scenario-icon"></span>- <span class="new-chat-scenario-label" data-i18n="new_chat.quick.creation">Writing</span>+ <button type="button" class="new-chat-scenario-chip" data-scenario="video">+ <span data-ui-icon="film" data-ui-icon-class="new-chat-scenario-icon"></span>+ <span class="new-chat-scenario-label" data-i18n="new_chat.quick.video">Make video</span></button>- <button type="button" class="new-chat-scenario-chip" data-scenario="data">+ <button type="button" class="new-chat-scenario-chip" data-scenario="seo_geo"><span data-ui-icon="globe" data-ui-icon-class="new-chat-scenario-icon"></span>- <span class="new-chat-scenario-label" data-i18n="new_chat.quick.data">Research</span>+ <span class="new-chat-scenario-label" data-i18n="new_chat.quick.seo_geo">SeoGeo</span></button><button type="button" class="new-chat-scenario-chip" data-scenario="office"><span data-ui-icon="file-text" data-ui-icon-class="new-chat-scenario-icon"></span><span class="new-chat-scenario-label" data-i18n="new_chat.quick.office">Documents</span></button>+ <button type="button" class="new-chat-scenario-chip" data-scenario="rnd">+ <span data-ui-icon="code" data-ui-icon-class="new-chat-scenario-icon"></span>+ <span class="new-chat-scenario-label" data-i18n="new_chat.quick.rnd">Build app</span>+ </button>+ <button type="button" class="new-chat-scenario-chip" data-scenario="education">+ <span data-ui-icon="book-open" data-ui-icon-class="new-chat-scenario-icon"></span>+ <span class="new-chat-scenario-label" data-i18n="new_chat.quick.education">Learning</span>+ </button></div><!-- Open-source-driven「还能帮你做这些」capability strip. Task cards arerendered + wired by modules/oss.js::initOssEntry() (data from thediff --git a/src/renderer/style.css b/src/renderer/style.cssindex 18a8a7d1..ac28d1b4 100644--- a/src/renderer/style.css+++ b/src/renderer/style.css@@ -2224,6 +2224,7 @@ body.model-not-configured .main-content { flex-direction: column; }.panel.active { display: flex; }#panel-new-chat {+ position: relative;overflow: hidden;background: var(--bg);}@@ -3568,7 +3569,8 @@ body.model-not-configured .main-content { flex-direction: column; }}.new-chat-center > .new-chat-header,.new-chat-center > .new-chat-input-wrapper,-.new-chat-center > .new-chat-scenarios {+.new-chat-center > .new-chat-scenarios,+.new-chat-center > .oss-entry {width: 100%;max-width: 720px;}@@ -3632,6 +3634,86 @@ body.model-not-configured .main-content { flex-direction: column; }color: var(--text-2);}+.new-chat-external-agent-btn {+ position: absolute;+ top: 28px;+ right: 32px;+ z-index: 2;+ display: inline-flex;+ align-items: center;+ gap: 8px;+ width: auto;+ max-width: calc(100% - 64px);+ min-height: 42px;+ padding: 7px 12px 7px 10px;+ border: 1px solid var(--border);+ border-radius: 12px;+ background: rgba(255, 255, 255, 0.82);+ box-shadow: 0 8px 22px rgba(23, 32, 51, 0.045);+ color: var(--text-2);+ font-family: inherit;+ font-size: 13px;+ font-weight: 500;+ line-height: 1.35;+ text-align: left;+ cursor: pointer;+ white-space: nowrap;+ transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s, transform 0.15s;+}++.new-chat-external-agent-btn:hover {+ border-color: var(--border-strong);+ background: var(--surface);+ box-shadow: 0 10px 28px rgba(23, 32, 51, 0.075);+ color: var(--text);+ transform: translateY(-1px);+}++.new-chat-external-agent-btn:focus-visible {+ outline: 3px solid rgba(91, 87, 214, 0.16);+ outline-offset: 2px;+}++.new-chat-external-agent-icon {+ width: 30px;+ height: 30px;+ padding: 7px;+ border-radius: 8px;+ background: rgba(15, 118, 110, 0.08);+ color: #0f766e;+ box-sizing: border-box;+ flex: 0 0 auto;+}++.new-chat-external-agent-label {+ min-width: 0;+ display: inline-flex;+ align-items: center;+ gap: 4px;+ overflow: hidden;+ text-overflow: ellipsis;+}++.new-chat-external-agent-label > span:first-child {+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+}++.new-chat-external-agent-arrow {+ width: 13px;+ height: 13px;+ color: currentColor;+ opacity: 0.72;+ flex: 0 0 auto;+ transition: transform 0.15s, opacity 0.15s;+}++.new-chat-external-agent-btn:hover .new-chat-external-agent-arrow {+ opacity: 1;+ transform: translateX(1px);+}+.new-chat-input-area {display: flex;flex-direction: column;@@ -3682,6 +3764,11 @@ body.model-not-configured .main-content { flex-direction: column; }font-size: 16px;}+.new-chat-input-area .chat-rich-editor {+ min-height: 80px;+ font-size: 16px;+}+.new-chat-input-area .chat-input-overlay {position: static;transform: none;diff --git a/test/renderer/new-chat-home.test.ts b/test/renderer/new-chat-home.test.tsnew file mode 100644index 00000000..ba4a0318--- /dev/null+++ b/test/renderer/new-chat-home.test.ts@@ -0,0 +1,59 @@+import { describe, expect, it } from 'vitest';+import * as fs from 'node:fs';+import * as path from 'node:path';++const root = path.join(__dirname, '../..');++function read(rel: string) {+ return fs.readFileSync(path.join(root, rel), 'utf8');+}++function newChatScenarioOrder(html: string) {+ const row = html.match(/<div class="new-chat-scenarios" id="new-chat-scenarios">([\s\S]*?)<\/div>/);+ expect(row?.[1]).toBeTruthy();+ return [...row![1].matchAll(/data-scenario="([^"]+)"/g)].map((m) => m[1]);+}++describe('new chat home surface', () => {+ it('keeps the external agent entry while filtering voice input', () => {+ const html = read('src/renderer/index.html');++ expect(html).toContain('id="new-chat-external-agent-btn"');+ expect(html).toContain('data-i18n="new_chat.external_agent_entry"');+ expect(html).not.toContain('id="new-chat-mic-btn"');+ expect(html).not.toContain('data-ui-icon="mic"');+ });++ it('uses the synced homepage shortcut set and order', () => {+ const html = read('src/renderer/index.html');++ expect(newChatScenarioOrder(html)).toEqual([+ 'data',+ 'video',+ 'seo_geo',+ 'office',+ 'rnd',+ 'education',+ ]);+ expect(html).not.toContain('data-scenario="ecommerce"');+ expect(html).not.toContain('data-scenario="creation"');+ });++ it('exposes Library-aware picker copy and accessible skill chip removal', () => {+ const html = read('src/renderer/index.html');++ expect(html).toContain('placeholder="Type @ to choose agents, skills, connectors, Library files."');+ expect(html).toContain('data-i18n-title="chat.recipient_picker_title_with_library"');+ expect(html).toContain('data-i18n-aria-label="chat.chip_remove_title"');+ expect(html).toContain('data-ui-icon="x"');+ });++ it('keeps the home layout constraints aligned with the synced PC surface', () => {+ const css = read('src/renderer/style.css');++ expect(css).toMatch(/#panel-new-chat\s*{[\s\S]*?position:\s*relative;/);+ expect(css).toContain('.new-chat-center > .oss-entry');+ expect(css).toContain('.new-chat-external-agent-btn');+ expect(css).toMatch(/\.new-chat-input-area \.chat-rich-editor\s*{[\s\S]*?min-height:\s*80px;[\s\S]*?font-size:\s*16px;/);+ });+});