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
Remove obsolete loopback API normalization
wyt1d6ea1541bba
diff --git a/src/main/ipc/connectors.ts b/src/main/ipc/connectors.tsindex c4561755..9bfcc236 100644--- a/src/main/ipc/connectors.ts+++ b/src/main/ipc/connectors.ts@@ -154,7 +154,7 @@ export const invokeHandlers = {payload: { display_name?: unknown; transport?: unknown },ctx: { userId: string },) => {- // Validation (shape, https/localhost rule, header/env hygiene) lives in+ // Validation (shape, HTTPS/explicit-loopback rule, header/env hygiene) lives in// custom-transport.ts — this handler stays logic-free per CLAUDE.md §2.const instance = await connectors.addCustomInstance(ctx.userId, {display_name: payload?.display_name as string,diff --git a/src/main/util/orkas-api-base.ts b/src/main/util/orkas-api-base.tsdeleted file mode 100644index f70e95c6..00000000--- a/src/main/util/orkas-api-base.ts+++ /dev/null@@ -1,16 +0,0 @@-export function normalizeOrkasApiBase(raw: string): string {- const trimmed = String(raw || '').replace(/\/+$/, '');- if (!trimmed) return trimmed;- try {- const url = new URL(trimmed);- const host = url.hostname.toLowerCase();- if (host === '127.0.0.1' || host === '::1' || host === '[::1]') {- url.hostname = 'localhost';- } else if (host.indexOf('www.') === 0 && (host.slice(4) === 'orkas.ai' || host.slice(4) === 'orkas.work')) {- url.hostname = host.slice(4);- }- return url.toString().replace(/\/+$/, '');- } catch {- return trimmed;- }-}diff --git a/test/main/util/window-security.test.ts b/test/main/util/window-security.test.tsindex b86531cd..3ba781b9 100644--- a/test/main/util/window-security.test.ts+++ b/test/main/util/window-security.test.ts@@ -27,7 +27,7 @@ describe('window security baseline', () => {it('accepts only credential-free HTTP(S) URLs', () => {expect(safeExternalHttpUrl('https://example.test/docs?q=1')).toBe('https://example.test/docs?q=1');- expect(safeExternalHttpUrl('http://localhost:9000/path')).toBe('http://localhost:9000/path');+ expect(safeExternalHttpUrl('http://example.test:9000/path')).toBe('http://example.test:9000/path');for (const value of ['file:///etc/passwd','javascript:alert(1)',