{"version":"2.1.290","anchor":"sse-transport-adds-connection-renewal-and-viewer-awayback-s","canonical_anchor":"sse-transport-adds-connection-renewal-and-viewer-awayback-s","heading":"Remote-session streaming reacts to whether a viewer is watching and can renew its connection","tier":"notice","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.290\/e\/sse-transport-adds-connection-renewal-and-viewer-awayback-s","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.290","markdown":"### Remote-session streaming reacts to whether a viewer is watching and can renew its connection\n\nRemote sessions now slow partial-output streaming while the viewer is away, can renew their connection, and retry oversize stream events\n\n**Unclear.** It is not clear what switches on the renewal check and the viewer signals.\n\n**What**\n\nThis is about remote sessions, where Claude Code runs somewhere else and its output is streamed to you as it is produced. The streaming connection uses SSE, a way for a server to keep sending updates over one open web connection. The changes:\n\n- Viewer away and back signals: the SSE transport now handles `viewer_away` and `viewer_back` events through `onViewerSign`. The remote-session client uses them to slow how often it sends partial output while nobody is watching.\n\n- Flush timing tracks the viewer: the part that uploads stream events gained `viewerAwayAtMs`, `readableContentBegunThisTurn` and `streamEventTimerWaitsForViewer`. These fields suggest that when output is sent can now wait on whether a viewer is present.\n\n- Connection renewal: the SSE transport gains `renewConnection`, `setStatementRenewalGate` and `deliverHeldForRenewal`. When a renewal check approves a message, the transport holds that message and reconnects.\n\n- Oversize retries: an oversize `message_start` stream event is now retried without `input_transformations`.\n\n**Why**\n\nIf you watch a remote session, how quickly partial output reaches you can now depend on whether the session thinks you are looking. Output may arrive in larger, slower batches while you are away and speed up when you come back.\n\n- Area: Sessions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}