Files
via/context.go
Ryan Hamamura 539a2ad504
All checks were successful
CI / Build and Test (push) Successful in 1m22s
feat: three-tier context lifecycle (grace → suspended → reaped)
Contexts that lose their SSE connection now pass through a suspended
state before being fully reaped. Suspended contexts keep their shell
(ID, route, CSRF token) but free page resources. On reconnect, the
page init function is re-run for a seamless resume. Contexts past
the TTL trigger a client-side reload instead of a silent dead page.

Configurable via ContextSuspendAfter (default 15m) and ContextTTL
(default 1h).
2026-02-13 15:22:08 -10:00

16 KiB