You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: correct bash installer exit code and isolate live eval auth
install-package.sh reported failure (exit 1) on a successful normal
install or --clean reinstall, because the EXIT trap's cleanup check
used `[ -d "$stage" ] && rm -rf "$stage"` as a bare statement: when
$stage no longer exists (the normal success case), that false test
is exempt from set -e but its own exit status becomes the trap's
return value, which becomes the script's final exit code. Every bash
wrapper script ends by calling install-package.sh as its last
statement, so this silently broke default-mode and --clean install
reporting for all callers. Fixed with explicit if/fi. Caught by a new
scripts/test-installers.sh bash test suite mirroring the existing
PowerShell coverage.
run-behavioral-evals.mjs left CODEX_HOME pointed at the real user's
.codex directory even though HOME/USERPROFILE were overridden to a
disposable sandbox, so live two-pass eval runs could inherit real
skill and session state instead of the isolated fixture copy. Fixed
by pointing CODEX_HOME at the disposable home. A fully empty
disposable home cannot authenticate, so the runner now seeds it with
a copy of the real auth.json only, nothing else. Verified against a
real codex exec run: the failure mode moved from a missing-directory
error, to 401 Unauthorized, to a real account usage-limit response,
confirming both the isolation and the authentication seeding work as
intended. A full live pass/fail verdict for the two named cases is
still blocked by that account-level usage limit, unrelated to this
code.
fallback_prevention: "The runner sets USERPROFILEand HOME to a disposable home containing only the copied codebase-orient skill, and passes --ignore-user-config to codex exec.",
281
+
fallback_prevention: "The runner sets USERPROFILE, HOME, and CODEX_HOME to a disposable home containing only the copied codebase-orient skill, and passes --ignore-user-config to codex exec. The disposable CODEX_HOME is seeded with a copy of the real auth.json only, so live cases can authenticate without inheriting any other real Codex state such as registered skills or session history.",
282
282
},
283
283
snapshots: {
284
284
initial: initialSnapshots,
@@ -729,6 +729,7 @@ async function writeRunnerFailure({
0 commit comments