fix: scope streaming handlers to prevent cross-run chunk contamination
Concurrent streaming runs registered handlers on the singleton event bus that received all LLMStreamChunkEvent emissions, causing chunks to fan out across unrelated queues. Introduces a ContextVar-based stream scope ID so each handler only accepts events from its own execution context. Closes #5376
G
Greyson LaLonde committed
6136228a66d94d77f4899548812ce866577f4117
Parent: fbe2a04
Committed by GitHub <noreply@github.com>
on 4/16/2026, 7:02:03 PM