Skip to content

Commit dbd7ebc

Browse files
committed
Align exec adapter git repo handling
1 parent 844e60b commit dbd7ebc

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎packages/codex-adapter/src/index.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ describe("SimulatedCodexAdapter", () => {
5050
fakeCodex,
5151
[
5252
"#!/bin/sh",
53+
"case \" $* \" in *\" --skip-git-repo-check \"*) ;; *) echo 'missing --skip-git-repo-check' >&2; exit 2 ;; esac",
5354
"echo 'Reading additional input from stdin...' >&2",
5455
"echo '{\"type\":\"error\",\"message\":\"{\\\"error\\\":{\\\"message\\\":\\\"The model is unsupported\\\"}}\"}'",
5556
"echo '{\"type\":\"turn.failed\",\"error\":{\"message\":\"{\\\"error\\\":{\\\"message\\\":\\\"The model is unsupported\\\"}}\"}}'",

‎packages/codex-adapter/src/index.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ export class CodexExecAdapter implements WorkerAdapter {
187187
"-c",
188188
'approval_policy="never"',
189189
"--cd",
190-
spec.cwd
190+
spec.cwd,
191+
"--skip-git-repo-check"
191192
];
192193
if (spec.model) {
193194
args.push("--model", spec.model);

‎plugins/codex-workflows/dist/cli.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58458,7 +58458,8 @@ var CodexExecAdapter = class {
5845858458
"-c",
5845958459
'approval_policy="never"',
5846058460
"--cd",
58461-
spec.cwd
58461+
spec.cwd,
58462+
"--skip-git-repo-check"
5846258463
];
5846358464
if (spec.model) {
5846458465
args.push("--model", spec.model);

0 commit comments

Comments
 (0)