Files
t3code/packages
Cursor Agent 75d703ba56 fix: delegate isHeartbeatFresh to WsTransport activity tracking
The createWsRpcClient stub hardcoded isHeartbeatFresh to always return
false, causing reconnectEnvironmentConnectionsAfterBrowserResume to
trigger full reconnects for every environment on tab focus even when
connections were still active.

Add lastActivityAt tracking to WsTransport (updated on successful
requests and stream values) and expose isHeartbeatFresh() that checks
whether activity occurred within the last 30 seconds. Wire
createWsRpcClient to delegate to the transport method.
2026-05-20 12:01:40 +00:00
..