web: show a running turn only after replay catches up
The room marked the SSE stream live when the response headers arrived, before it read the durable backlog. A replayed turn_start therefore showed "Rhema is working..." until its turn_end arrived at the end of the replay, even for a turn that had finished. The feed now closes its replay with a live-only ready frame, and the client marks the stream live on that frame. A backlog over the 2000-row cap sends lag instead, so a skipped turn_end cannot leave the room running either.
This commit is contained in:
1 parent
a40a7a6b36
commit
62fa380ec0
3 files changed
+28
-2
No files matched your search
@@ -528,6 +528,12 @@ Every stream is resumable by sequence number. A reconnect asks for
|
||||
`since=<last seq>` and gets the gap, then live frames. The hub's
|
||||
record-under-one-lock trick is the shape to copy: no gap, no overlap.
|
||||
|
||||
The replay ends with a live-only `ready` frame. A backlog larger than
|
||||
the 2000-row cap sends `lag` instead, and the client resumes from its
|
||||
last processed sequence. The room shows `Rhema is working...` only after
|
||||
`ready`, so replaying a turn that already ended does not claim it is
|
||||
still running.
|
||||
|
||||
## 8. Auth and trust
|
||||
|
||||
### Accounts
|
||||
|
||||
Reference in new issue
Block a user