fix: remove context reaper to prevent background tabs from going stale #4
Reference in New Issue
Block a user
Delete Branch "worktree-remove-reaper"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background windows stopped updating because the reaper suspended contexts after
ContextSuspendAfter(15 min default) and fully reaped them afterContextTTL(1 hour default). Suspended contexts had to re-run the page init function from scratch on reconnect, losing the live-updating experience.Contexts now live until the browser tab closes (
beforeunloadbeacon) or the server shuts down. The context map grows indefinitely — no background reaper.Changes
via.go: RemovereaperStopfield,startReaper(),reapOrphanedContexts(), reaper lifecycle calls,lastSeenAtSSE update, suspend-resume SSE block,ContextSuspendAfter/ContextTTLconfig handlingcontext.go: RemovelastSeenAt/suspendedfields andsuspend()methodconfiguration.go: RemoveContextSuspendAfter/ContextTTLoption fieldsvia_test.go: Remove 10 reaper-related tests, keepTestCleanupCtxIdempotentdocs/getting-started.md: RemoveContextTTLfrom config example and options tabledocs/state-and-interactivity.md: Update lifecycle description (no background reaper)4191302cb8tob3c2d3ae32