Send an SSE retry interval and replay after overflow #57

Merged
weichen merged 1 commits from feature/runstate-shell into main 2026-10-03 16:41:40 +00:00
1 Commits
Author SHA1 Message Date
weichenandCursor 7bef7a4f94 Send an SSE retry interval and replay after overflow
ci / vet-and-test (pull_request) Successful in 40s
Why: A dropped subscription had no retry hint, and a reconnect had no test that the gap is filled from the cursor.
Evidence: The stream starts with retry: 1000. A live publish is delivered, and Last-Event-ID after an overflow replay skips events the client already has.
Impact: EventSource waits one second before reconnecting. Persisted events are unchanged.
Refs: feature/runstate-shell
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-03 16:35:34 +00:00