Files
Mathias Fredriksson 89d470c112 fix(coderd): subscribe to pubsub before accepting websocket in watchChats
The watchChats handler called SubscribeWithErr after websocket.Accept,
creating a window where clients could trigger events before the
subscription was active. Move the subscription before the accept so
events accumulate in the pubsub internal queue and drain naturally
once the encoder is ready.

Fixes: https://linear.app/codercom/issue/CODAGT-480
2026-06-01 20:20:52 +00:00
..