Skip to content

Commit c8c1bd9

Browse files
i1broslapoguzov
authored andcommitted
Inline default Codex path resolution
1 parent 7dec088 commit c8c1bd9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ if (process.argv[2] === "login") {
3030
}
3131

3232
function startAcpServer() {
33-
const defaultCodexPath = createRequire(import.meta.url).resolve("@openai/codex/bin/codex.js");
34-
const codexPath = process.env["CODEX_PATH"] ?? defaultCodexPath;
33+
const codexPath = process.env["CODEX_PATH"] ?? createRequire(import.meta.url).resolve("@openai/codex/bin/codex.js");
3534
const configString = process.env["CODEX_CONFIG"];
3635
const authRequestString = process.env["DEFAULT_AUTH_REQUEST"];
3736
const modelProvider = process.env["MODEL_PROVIDER"];

0 commit comments

Comments
 (0)