Files
coder/coderd
Mathias Fredriksson 7a84a851ce fix(coderd): subscribe to pubsub before accepting websocket in watchChats (#25663)
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 CODAGT-480
2026-06-03 13:18:57 +03:00
..