v0.6.0
What's New
Context timeout & orphan cleanup
Contexts no longer leak when clients disconnect without beforeunload firing (network drops, mobile browser kills, crashes).
- SSE disconnect cleanup — contexts are disposed immediately when the SSE connection drops, handling 90%+ of cases
- Background reaper — a safety-net goroutine periodically cleans up contexts where SSE never connected (e.g. page rendered but JS never ran)
ContextTTLconfig — controls how long a context may exist without an SSE connection before the reaper disposes it (default: 30s, negative value disables the reaper)
Bug fix
devModeRemovePersisted— fixed inverted condition that prevented persisted contexts from being removed in dev mode