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(agents): hide unsupported account allowance sections
wyt43d16ac4788f
diff --git a/src/renderer/style.css b/src/renderer/style.cssindex 6edd023b..d3077d0f 100644--- a/src/renderer/style.css+++ b/src/renderer/style.css@@ -13256,6 +13256,7 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }flex-direction: column;gap: 6px;}+.agents-detail-section[hidden] { display: none; }.agents-detail-section-workflow {flex: 1;min-height: 200px;diff --git a/test/e2e/cli_usage_e2e_details.spec.ts b/test/e2e/cli_usage_e2e_details.spec.tsindex 13f09c19..6fa83380 100644--- a/test/e2e/cli_usage_e2e_details.spec.ts+++ b/test/e2e/cli_usage_e2e_details.spec.ts@@ -7,6 +7,20 @@ test('shows compact remaining allowance for both CLIs without starting a task',const app = cliOrkas; const page = app.page!;const requests = path.join(app.root, 'quota-requests');writeFileSync(requests, '');+ const ordinary = await app.invoke<any>('agents.create', {+ name: 'Quota_ordinary', description: 'Ordinary agent without a CLI account',+ });+ expect(ordinary.ok).toBe(true);+ const section = page.locator('#agents-detail-cli-usage-section');+ const openOrdinary = async (label: string, language: string) => {+ await page.evaluate(async ({ id, language }) => {+ await (window as any).setLang(language);+ await (window as any).openAgentDetail(id);+ }, { id: ordinary.agent.agent_id, language });+ await page.screenshot({ path: testInfo.outputPath(`quota-ordinary-${label}.png`) });+ await expect(section).toBeHidden();+ };+ await openOrdinary('initial', 'zh');for (const cli of ['codex', 'claude'] as const) {const script = path.join(app.root, `quota-${cli}.cjs`);const source = `const fs = require('node:fs');@@ -41,7 +55,6 @@ else require('node:readline').createInterface({ input: process.stdin }).on('lineawait page.evaluate(async id => {await (window as any).setLang('zh'); await (window as any).openAgentDetail(id);}, created.agent.agent_id);- const section = page.locator('#agents-detail-cli-usage-section');await expect(section).toBeVisible();await expect(section).toContainText(cli === 'codex' ? '83%' : '75%');await expect(section).toContainText('重置时间');@@ -50,7 +63,18 @@ else require('node:readline').createInterface({ input: process.stdin }).on('lineawait expect(section).not.toContainText('同一 CLI');await expect(section).not.toContainText('更新于');await page.screenshot({ path: testInfo.outputPath(`quota-${cli}.png`) });+ await openOrdinary(`after-${cli}`, cli === 'codex' ? 'en' : 'zh');}+ await page.setViewportSize({ width: 900, height: 650 });+ for (const cli of ['opencode', 'hermes'] as const) {+ const created = await app.invoke<any>('agents.create', {+ name: `Quota_${cli}`, description: 'CLI without account allowance support', runtime: { kind: 'cli', cli },+ });+ expect(created.ok).toBe(true);+ await page.evaluate(async id => { await (window as any).openAgentDetail(id); }, created.agent.agent_id);+ await expect(section).toBeHidden();+ }+ await openOrdinary('narrow', 'en');const observed = readFileSync(requests, 'utf8').trim().split('\n').map(line => JSON.parse(line));expect(observed.some(r => r.method === 'account/rateLimits/read')).toBe(true);expect(observed.some(r => r.request?.subtype === 'get_usage')).toBe(true);