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
Hide video model details in settings
wyte7a36fcfe133
diff --git a/src/main/ipc/index.ts b/src/main/ipc/index.tsindex ed8627d0..4761994c 100644--- a/src/main/ipc/index.ts+++ b/src/main/ipc/index.ts@@ -1710,9 +1710,8 @@ const invokeHandlers: Record<string, InvokeHandler> = {'videoAuth.list': async () => ({ok: true,providers: videoAuth.listVideoProviderOptions(),- modelsByProvider: videoAuth.listVideoModelsByProvider(),profiles: videoAuth.listVideoProfiles().map((p) => ({- id: p.id, provider: p.provider, model: p.model, label: p.label, createdAt: p.createdAt,+ id: p.id, provider: p.provider, label: p.label, createdAt: p.createdAt,apiKeyMasked: auth.maskKey(p.apiKey),})),}),diff --git a/src/renderer/modules/settings.js b/src/renderer/modules/settings.jsindex 5ad1dfed..2cd3b898 100644--- a/src/renderer/modules/settings.js+++ b/src/renderer/modules/settings.js@@ -1330,35 +1330,17 @@ const _VIDEO_AUTH_PROVIDER_OPTIONS = [{ id: 'doubao', label: 'DouBao · Seedance', docs: 'https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey' },];-const _VIDEO_AUTH_MODELS_BY_PROVIDER = {- doubao: [- { id: 'doubao-seedance-2-0-260128', name: 'Seedance 2.0' },- ],-};-function _settingsVideoProviderOptions() {return Array.isArray(_settingsState.videoAuthProviderOptions) && _settingsState.videoAuthProviderOptions.length? _settingsState.videoAuthProviderOptions: _VIDEO_AUTH_PROVIDER_OPTIONS;}-function _settingsVideoModelsByProvider() {- return _settingsState.videoModelsByProvider && typeof _settingsState.videoModelsByProvider === 'object'- ? _settingsState.videoModelsByProvider- : _VIDEO_AUTH_MODELS_BY_PROVIDER;-}-function _videoProviderLabel(id) {const hit = _settingsVideoProviderOptions().find((p) => p.id === id);return hit ? hit.label : id;}-function _videoModelLabel(provider, model) {- const list = _settingsVideoModelsByProvider()[provider] || [];- const hit = list.find((m) => m.id === model);- return hit ? hit.name : model;-}-function _settingsSelectedVideoProvider() {return _settingsState.videoProviderSel?.getValue()|| document.getElementById('settings-video-provider')?.dataset?.value@@ -1371,9 +1353,6 @@ async function _settingsRefreshVideoProfiles() {_settingsState.videoAuthProviderOptions = (res && res.ok && Array.isArray(res.providers) && res.providers.length)? res.providers: _VIDEO_AUTH_PROVIDER_OPTIONS;- _settingsState.videoModelsByProvider = (res && res.ok && res.modelsByProvider && typeof res.modelsByProvider === 'object')- ? res.modelsByProvider- : _VIDEO_AUTH_MODELS_BY_PROVIDER;}function _settingsRenderVideoSection() {@@ -1457,8 +1436,6 @@ function _settingsRenderVideoEntries() {primary.innerHTML = `<span class="entry-provider">${escapeHtml(_videoProviderLabel(p.provider))}</span><span class="entry-sep">·</span>- <span class="entry-model">${escapeHtml(_videoModelLabel(p.provider, p.model))}</span>- <span class="entry-sep">·</span><span class="entry-account-chip">@ ${escapeHtml(p.label || 'default')}</span>${p.apiKeyMasked ? `<span class="account-mask">${escapeHtml(p.apiKeyMasked)}</span>` : ''}`;diff --git a/test/renderer/settings-open.test.ts b/test/renderer/settings-open.test.tsindex 28b49ea5..61c2bb8d 100644--- a/test/renderer/settings-open.test.ts+++ b/test/renderer/settings-open.test.ts@@ -65,9 +65,13 @@ describe('open-source Settings sync guards', () => {expect(indexHtml).toContain('id="settings-video-provider"');expect(indexHtml).not.toContain('id="settings-video-model"');expect(settingsJs).not.toContain('videoModelSel');+ expect(settingsJs).not.toContain('videoModelsByProvider');+ expect(settingsJs).not.toContain('modelsByProvider');+ expect(settingsJs).not.toContain('_videoModelLabel');expect(settingsJs).not.toContain('_settingsRenderVideoModelPicker');expect(settingsJs).not.toContain('settings.video.pick_model');expect(settingsJs).not.toContain('settings.video.error_model_needed');+ expect(settingsJs).not.toContain('Seedance 2.0');expect(settingsJs).toContain('DouBao · Seedream');expect(settingsJs).not.toContain('Seedream 3.0');