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.
- Rename backends to environments across mobile UI
- Add richer loading and empty states for connections, home, and new task flows
- Improve review section loading handling and terminal keyboard layout
- Replace chained array transforms with explicit loops across mobile and server paths
- Tighten provider, git, and orchestration parsing while preserving behavior
- Improve remote-connect UI data shaping and thread activity filtering
- Replace git-scoped client/runtime state with VCS-scoped APIs
- Add checkpoint diff preview state and reuse cached diffs
- Update mobile and web review flows to use the new shared state
- Move archived threads state into shared client-runtime
- Add stale-aware refresh/invalidation for path search, discovery, and VCS refs
- Wire provider invalidations through the web runtime
- Migrate branch selector and git actions to useVcsRefs and new source control action hooks
- Remove gitReactQuery and projectReactQuery modules in favor of sourceControlActions and vcsRefState
- Add staleTimeMs to mobile vcs ref manager configuration
- Move composer path search and source-control discovery into shared managed state
- Persist review async/loading state in atoms and add coverage
- Update mobile/web composers and review highlighter initialization
- Move review diff parsing and highlighting into shared mobile diff modules
- Add review service and wire server, web, and mobile around remote review selection
- Share source control discovery state across mobile environment lifecycles
- Resolve discovery clients through centralized mobile environment sessions
- Ignore stale in-flight discovery refreshes after invalidation or reset
- Mark pending web shell/thread-detail runtime migration points
Co-authored-by: codex <[email protected]>
- Move ws RPC client and transport primitives into `@t3tools/client-runtime`
- Update web settings and environment code to use shared runtime types
- Keep reconnect and transport tests aligned with the new package boundary
- Tighten environment/thread ID typing across mobile and shared state
- Track terminal metadata and subprocess status when attaching sessions
- Update launch and status flows for remote terminals