Closed
Description
Problem
Right around the time of a Coderd restart, @Emyrk was connected to the web terminal, lost connection, reconnected, and got a bunch of junk inserted into their terminal:
We poked around in the Web inspector and found that the frontend was sending the content. It seems like there's some kind of replay buffer that's re-sending some terminal escape codes, but whatever had been listening to them is now gone and has no way of acking.
Solution
@deansheather thinks we could just block on the websocket until we're finished rendering.