mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-20 09:09:35 +02:00
Merge pull request #647: fix(web): hold the WS pill's queued-bytes suffix until a backlog persists
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
9fc7781442
5 files changed
+127
-9
No files matched your search
@@ -202,6 +202,15 @@ Both wait about 2.5 seconds before appearing, so a deploy that restarts the serv
|
||||
flash a warning at you every time. If the browser reports itself offline, the grace period
|
||||
is skipped.
|
||||
|
||||
**The transport readout.** With a session open, the header shows how its terminal is
|
||||
connected: `WS` (WebSocket, the normal case), `WS…` (connecting or reconnecting) or `HTTP`
|
||||
(the WebSocket is unavailable and input goes over HTTP). If typed or pasted input is backing
|
||||
up faster than it is acknowledged, the readout grows a suffix such as `WS · 1.2KB queued`.
|
||||
That suffix appears only after the backlog has stayed up for about a second, so a paste or a
|
||||
fast burst that clears at once does not make the pill widen and shrink. (It is part of the
|
||||
text line, so you see it in the Compact and As before header styles; Tiles hides that line and
|
||||
shows `WS live`, and phones hide it too.)
|
||||
|
||||
There is also a watchdog for the case where the connection stops delivering without
|
||||
erroring. If the server's heartbeat stops arriving, Codeman reconnects on its own rather
|
||||
than sitting on a green dot showing frozen data.
|
||||
|
||||
Reference in new issue
Block a user