Merge branch 'nwparker/term-speed-2-hidden-delivery-gate' into nwparker/term-speed-2-model-query-responder

This commit is contained in:
Neil
2026-06-17 02:26:59 -07:00
@@ -428,12 +428,14 @@ describe('remote runtime request connection integration', () => {
})
})
)
// Why: CI can register subscription cleanups before the first
// response crosses the shared-control socket.
await waitFor(
() => subscriptionCleanups.size >= mixedSubscriptions.length + 1,
() =>
subscriptionCleanups.size >= mixedSubscriptions.length + 1 && mixedEvents.length > 0,
5000,
() => `cleanup count ${subscriptionCleanups.size}, event count ${mixedEvents.length}`
)
expect(mixedEvents.length).toBeGreaterThan(0)
expect(
(server as unknown as { wsConnectionIds: Map<unknown, unknown> }).wsConnectionIds.size
).toBe(1)