Files
opencode/packages
Aiden Cline 89c51a86bd fix(httpapi): provide instance context to event stream subscription
The /event SSE handler called bus.subscribeAll() which evaluates its
inner Effect (InstanceState.get → InstanceRef/Instance.current lookup)
inside the body-stream consumer fiber. That fiber does not carry the
request handler's ALS/Effect context, so the lookup failed and the
stream halted right after server.connected — no message deltas,
permission asks, or heartbeats could reach clients.

Capture InstanceState.context and InstanceState.workspaceID at handler
time and provide them to the subscription stream via Stream.provideService.

Fixes #27391.

Co-authored-by: James Long <longster@gmail.com>
2026-05-13 20:16:20 -05:00
..
2026-05-13 22:18:40 +00:00
2026-05-14 00:59:33 +00:00
2026-01-21 14:36:21 -06:00
2026-05-13 22:18:40 +00:00
2026-05-14 00:59:33 +00:00
2026-05-13 22:18:40 +00:00
2026-05-13 22:18:40 +00:00
2026-05-14 03:01:25 +02:00