I was checking what happens when Supaplane's daemon rejects a WebSocket handshake. The client received the expected error and the connection closed. In the test that starts the real daemon and awaits shutdown, all five assertions ran on Bun 1.3.14 and the test still hit its five-second timeout while stopping the daemon.
| Runtime | Result for the same test |
|---|---|
| Bun 1.3.14 | Assertions ran, then teardown timed out |
| Bun 1.4.5 | Test and teardown completed |
| Node 22.23.0 with Vitest | Test and teardown completed |
I pinned Bun 1.4.5 and added the focused envelope suite to the Bun CI job. The Bun run matters because the Vitest run on Node already passed. Awaiting daemon.stop() makes the test check whether the daemon actually exits its shutdown path after rejecting a client.
The version pin addressed the observed hang. The Supaplane investigation is still open to establish whether it shares a cause with the upstream Bun shutdown report.