mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-28 06:23:01 +00:00
The file's final test configures the gateway with a remote provider and a fake key, and its afterEach only clears the mock transport. With no afterAll, the poisoned global config survives the file boundary; the next test file in the shard that triggers an embed makes a real HTTP call and fails. Surfaced on master when #3022's new test file reshuffled shard composition (shard 6: synthesize-concepts-progress failed twice with a live Google embed rejection). The legacy-embedding preload can't catch this: it only re-applies defaults when the gateway slot is empty. One-line root-cause fix at the leaker. A repo-wide guard for the class (~70 files call configureGateway without a final reset) is filed as a follow-up. Co-authored-by: Garry Tan <garrytan@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>