-
fix: preserve context across SSE reconnects on tab visibility change
released this
2026-02-13 20:52:46 +00:00 | 34 commits to main since this releaseDatastar aborts SSE on visibilitychange (tab hidden) and reconnects
when visible. The previous cleanup-on-disconnect destroyed the context
before the client could reconnect. Now SSE disconnect does a soft
teardown (mark disconnected, keep context alive) and reconnect drains
stale patches before resuming. The reaper uses disconnect time instead
of creation time so recently-disconnected contexts aren't prematurely
reaped.Downloads