Skip to content

feat(cloud-agent): improved sse keepalive handling#1614

Open
tatoalo wants to merge 1 commit intomainfrom
feat/cloud-agent/sse-keepalive-task-stream
Open

feat(cloud-agent): improved sse keepalive handling#1614
tatoalo wants to merge 1 commit intomainfrom
feat/cloud-agent/sse-keepalive-task-stream

Conversation

@tatoalo
Copy link
Copy Markdown
Contributor

@tatoalo tatoalo commented Apr 13, 2026

Problem

Cloud task watchers were treating keepalive frames like normal payloads, and the renderer could reuse preloaded local session state when a cloud run attached, which led to noisy reconnect behavior and duplicate startup history in cloud sessions.

Changes

  • ignore SSE keepalive events in the cloud task watcher while still preserving reconnect logic
  • skip the local reconnect path for cloud runs and reset same-run preloaded session history before the first cloud snapshot is applied
  • added regression coverage

@tatoalo tatoalo self-assigned this Apr 13, 2026
@tatoalo tatoalo requested a review from a team April 13, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants