Skip to content

v0.6.0

Choose a tag to compare

@ryanhamamura ryanhamamura released this 06 Feb 20:34
· 48 commits to main since this release

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)
  • ContextTTL config — 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