fix: suppress codex update prompt in non-interactive agent sessions

This commit is contained in:
Prateek 2026-03-07 14:24:55 +05:30
parent 8801502871
commit 2cd1b02b49
1 changed files with 2 additions and 0 deletions

View File

@ -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;
},