You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sdk,core): close resumed chat streams promptly when caught up
Resuming a chat session stream (page reload or reconnect) held the SSE
connection open for the whole long-poll window even after every buffered
output record had already arrived. The client now detects when it has
caught up to the latest output and closes the resumed stream right away,
so reconnecting to an idle chat settles immediately.
Detection reuses the stream's tail-carrying heartbeat: batch and ping
frames now carry the tail, and CaughtUpTracker from @s2-dev/streamstore
0.25.0 turns "last delivered seq + 1 === tail" into a caught-up signal.
When the tail is absent (older self-hosted stream backends) the client
keeps its previous behavior, so nothing regresses. Also moves to the
current S2 hosts that 0.25.0 defaults to.
Chat sessions now close a resumed stream as soon as it has caught up to the latest output, instead of holding the connection open for the full long-poll window. Reloading or reconnecting to an idle chat settles faster.
0 commit comments