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
{{ message }}
Repository navigation
Make sandbox diagnostic fixtures independent of forced terminal color #304
The Codex parent sandbox diagnostic tests in runner/run.test.ts fail when FORCE_COLOR=1 is inherited. Bun wraps console.error strings in ANSI reset/red sequences, so raw stderr and receipt evidence differ from the plain strings expected by the tests although the rendered diff looks identical.
Reproduction on Bun 1.3.14:
FORCE_COLOR=1 bun test plugins/pstack/skills/poteto-mode/scripts/runner/run.test.ts --test-name-pattern 'Codex parent sandbox diagnostics'
Before the fix: 9 pass, 4 fail. Direct child output confirms \u001b[0m\u001b[31mENOTFOUND api.anthropic.com\u001b[0m\n.
Local fix prepared: the two byte-sensitive fake Claude children use process.stderr.write with explicit newlines. The diagnostic group forces FORCE_COLOR=1 and restores the prior environment afterwards. Production raw stream capture and strict assertions are preserved. The regression was observed failing with forced color before the fixture change.
Validation:
Targeted diagnostic group: 13 pass, 0 fail with forced color on Bun 1.3.14.
Full package test suite: 509 pass, 0 fail with forced color on Bun 1.4.0.
Strict typecheck, static invariants (including 219 verifier tests), and Claude plugin validation pass.
git diff --check passes.
Toolchain details: the repository pins Bun 1.4.0. The operator shell has Bun 1.3.14, which cannot read the version-2 lockfiles used by statechart and the verifier. Full validation used a temporary Bun 1.4.0 binary directly. Local Node 22.14.0 needed NODE_OPTIONS=--experimental-strip-types for the two existing Node runtime-guard tests; CI config specifies Node 22.23.2. No global runtime installation or dependency files changed.
The fix remains a local uncommitted patch. No live gate or merge was published.
Activity
ericlitman commentedon Dec 1, 2026
Opened PR #313: #313
fix(runner): keep sandbox diagnostic test fixtures independent of FOR…
ericlitman commentedon Dec 1, 2026
#304: Make sandbox diagnostic fixtures independent of forced terminal color
Merged in PR #313 (
97ee8708, queue heade87f1d24).FORCE_COLOR=1: done as written. Proved by runningFORCE_COLOR=1 bun run test(494 pass, 0 fail on Bun 1.4.0) locally and in CI on PR fix(runner): Claude sandbox failure detection, settings.json env fallback, and FORCE_COLOR test fix #313 and every subsequent PR.Full checked closeout record:
projects/open-pstack/records/2026-12-01-batch-293/closeout.md(Open Pstackv1.22.0).