You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(agents): SSE seq/cursor drift when NO_REPLY messages are suppressed mid-stream #61816
When the SSE streaming layer suppresses NO_REPLY messages (or other filtered content), the sequence number and cursor used for client-side event ordering can drift out of sync. Clients that reconnect or use the cursor for resumption may miss messages or receive duplicates.
Root cause
The SSE event emitter increments seq for every internal message but then suppresses some from the wire. The client cursor tracks the last received seq, which no longer matches the server-side counter. On reconnection with Last-Event-ID, the server resumes from the wrong offset.
Impact
Clients reconnecting after a suppressed NO_REPLY block may miss the next real message
In high-suppression scenarios (heartbeat sessions, cron runs), cursor drift accumulates
Affects all SSE-based consumers (Control UI, webchat, external integrations)
Proposed fix
Either:
Do not increment seq for suppressed messages, or
Track a separate "wire seq" that only increments for actually-sent events
Closing as fixed by #61829, which merged in bbd0702.
That merged change updates the SSE/history sanitization flow and raw transcript sequence tracking specifically to avoid cursor/seq drift when filtered messages are suppressed from the wire.
Activity
steipete commentedon Apr 6, 2026
Closing as fixed by #61829, which merged in bbd0702.
That merged change updates the SSE/history sanitization flow and raw transcript sequence tracking specifically to avoid cursor/seq drift when filtered messages are suppressed from the wire.