Skip to content

Stop session-launch token test leaking a real orchestrator per suite run - #143

Merged
w4ffl35 merged 1 commit into
masterfrom
fix/session-launch-test-leak
Oct 13, 2026
Merged

w4ffl35 merged 1 commit into
masterfrom
fix/session-launch-test-leak

Conversation

@w4ffl35

@w4ffl35 w4ffl35 commented Oct 13, 2026

Copy link
Copy Markdown
Member

testTokenGatesControlPlanePosts started the dashboard WITHOUT the fake CLI injected, so its good-auth POST spawned a real detached --task x --mode multi-agent-orchestrator-headless session. The test never reaped it: every full suite run leaked one live orchestrator that burned real LLM tokens (~12k input) and then blocked on .harness.needs-decision forever. Found three accumulated hc-launch-* strays from past runs (cleaned up).

Fix: inject the fake CLI like the other spawn tests, assert its marker file (proving the launch went to the fake), and SIGKILL + remove in finally. Verified standalone: all 8 tests pass, zero strays spawned, zero hc-launch dirs left.

@w4ffl35
w4ffl35 merged commit d351ece into master Oct 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant