fix: suppress codex update prompt in non-interactive agent sessions
This commit is contained in:
parent
8801502871
commit
2cd1b02b49
|
|
@ -603,6 +603,8 @@ function createCodexAgent(): Agent {
|
|||
// The wrappers strip this directory from PATH before calling the real
|
||||
// binary, so there's no infinite recursion.
|
||||
env["PATH"] = `${AO_BIN_DIR}:${process.env["PATH"] ?? "/usr/bin:/bin"}`;
|
||||
// Disable Codex's version check/update prompt for non-interactive AO sessions.
|
||||
env["CODEX_DISABLE_UPDATE_CHECK"] = "1";
|
||||
|
||||
return env;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue