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(cli): surface Codex stdin API key prompt
IgnoreMeButd4b211cf58d2
diff --git a/src/main/model/core-agent/interactive-cli-sessions.ts b/src/main/model/core-agent/interactive-cli-sessions.tsindex e9688420..45719479 100644--- a/src/main/model/core-agent/interactive-cli-sessions.ts+++ b/src/main/model/core-agent/interactive-cli-sessions.ts@@ -184,6 +184,7 @@ function detectPrompt(text: string): { kind: InteractiveCliPromptKind; sensitiveif (/\b(?:enter|paste|input|provide|type)\b.{0,60}\b(?:password|passcode|client\s+secret|secret|token|api\s*key|private\s+key)\b/i.test(tail)|| /\b(?:password|passcode|client\s+secret|secret|token|api\s*key|private\s+key)\s*[:?]\s*$/i.test(tail)+ || /\breading\b.{0,60}\b(?:password|passcode|client\s+secret|secret|token|api\s*key|private\s+key)\b.{0,30}\bfrom\s+stdin\b/i.test(tail)) {return { kind: 'secret', sensitive: true };}diff --git a/test/main/model/local-tools.test.ts b/test/main/model/local-tools.test.tsindex ef9f33b5..2a1e85b1 100644--- a/test/main/model/local-tools.test.ts+++ b/test/main/model/local-tools.test.ts@@ -942,6 +942,38 @@ describe('local-tools › interactive_cli lifecycle', () => {await interactive.execute({ action: 'close', session_id: started.session_id, force: true, reason: 'test cleanup' }, makeCtx());}, 10000);+ it('hands the Codex stdin API-key prompt to the user', async () => {+ const { lt, perm } = await loadModules();+ perm.setLocalExecMode('all_files_auto');+ const interactive = toolByName(+ lt.createLocalTools({ userId: 'u1', cid: 'c1', agentId: 'a1' }),+ 'interactive_cli',+ );+ const command = testNodeCommand(+ "process.stdout.write('Reading API key from stdin...'); setInterval(() => {}, 1000);",+ );++ const startResult = await interactive.execute({+ action: 'start',+ command,+ max_lifetime_ms: 30000,+ }, makeCtx());+ const started = parseToolJson(startResult);++ expect(started.output).toContain('Reading API key from stdin...');+ expect(started.prompt_kind).toBe('secret');+ expect(started.user_action_required).toBe(true);+ expect(started.agent_should_stop).toBe(true);+ expect(startResult.endTurn).toBe(true);++ await interactive.execute({+ action: 'close',+ session_id: started.session_id,+ force: true,+ reason: 'test cleanup',+ }, makeCtx());+ }, 10000);+it('keeps interactive CLI available in workspace_approval mode', async () => {const { lt, perm } = await loadModules();perm.setLocalExecMode('workspace_approval');