• v0.6.0 6dcd54c88b

    fix: clean up leaked contexts on SSE disconnect and add orphan reaper

    ryan released this 2026-02-06 20:34:28 +00:00 | 48 commits to main since this release

    When clients disconnect without beforeunload firing (network drops,
    mobile kills, crashes), contexts leaked in the registry permanently.

    • Extract cleanupCtx helper for dispose/unregister sequence
    • Call cleanupCtx on SSE disconnect (sse.Context().Done())
    • Add background reaper for contexts where SSE never connected
    • Add ContextTTL config option (default 30s, negative disables)
    • Fix inverted condition in devModeRemovePersisted
    Downloads