From e523b34d1b69786c64a1ef8441b2f7cfd777c7d8 Mon Sep 17 00:00:00 2001 From: Stefano Fiorini Date: Mon, 18 May 2026 19:15:59 -0500 Subject: [PATCH] fix: codex uses --yolo not --full-auto --- tools/ai-cli-dispatch/src/execute.ts | 2 +- tools/ai-cli-dispatch/tests/execute.test.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/ai-cli-dispatch/src/execute.ts b/tools/ai-cli-dispatch/src/execute.ts index 56adbf4..010fcf8 100644 --- a/tools/ai-cli-dispatch/src/execute.ts +++ b/tools/ai-cli-dispatch/src/execute.ts @@ -6,7 +6,7 @@ import type { ClientName, ExecResult } from "./types.js"; import { ClientNotFoundError, ExecError } from "./types.js"; const CLIENT_ARGS: Record string[]> = { - codex: (p) => ["exec", "--full-auto", p], + codex: (p) => ["exec", "--yolo", p], claude: (p) => ["-p", p, "--dangerously-skip-permissions"], opencode: (p) => ["run", "--dangerously-skip-permissions", p], }; diff --git a/tools/ai-cli-dispatch/tests/execute.test.ts b/tools/ai-cli-dispatch/tests/execute.test.ts index bf6882f..f50225f 100644 --- a/tools/ai-cli-dispatch/tests/execute.test.ts +++ b/tools/ai-cli-dispatch/tests/execute.test.ts @@ -82,7 +82,7 @@ function mockExistsSync(allowedPaths: Set): any { describe("executePrompt", () => { it("captures stdout for a successful codex execution", async () => { const scenarios = new Map([ - ['codex exec --full-auto "hello world"', { stdout: "result\n", exitCode: 0 }], + ['codex exec --yolo "hello world"', { stdout: "result\n", exitCode: 0 }], ]); const result = await executePrompt("codex", '"hello world"', { spawn: mockSpawn(scenarios), @@ -141,7 +141,7 @@ describe("executePrompt", () => { it("rejects with ExecError when timeout is exceeded", async () => { const scenarios = new Map([ - ["codex exec --full-auto slow", { hang: true }], + ["codex exec --yolo slow", { hang: true }], ]); await assert.rejects( executePrompt("codex", "slow", { @@ -159,7 +159,7 @@ describe("executePrompt", () => { it("passes prompts with special characters unchanged", async () => { const scenarios = new Map([ [ - 'codex exec --full-auto "quotes\nnewlines"', + 'codex exec --yolo "quotes\nnewlines"', { stdout: "ok", exitCode: 0 }, ], ]);