Files
t3code/packages/client-runtime
Theo BrowneandClaude Fable 5 a40376b28f fix: dual-review pass (Fable + gpt-5.6-sol high) on rebased branch
Bot rounds (Macroscope/Bugbot):
- taskKind: explicit shell/monitor types win over parentTaskId fallback
- lastStartedAt per activation; elapsed timers exclude idle gaps
- client revision selection uses (revision ?? -1) matching server hydration
- orphan-sweep append retries once on session.exited (often the last event)
- live-strip wrapper keyed off hasLiveAgents (no phantom spacer)

gpt-5.6-sol (high):
- thread.reverted now invalidates the cached roster (no resurrecting
  reverted agents); new domain-event subscription
- endedAt: explicit > existing > first-terminal ingestion time
- roster strings bounded at 180 chars (recentActivity + currentActivity)
- task_updated.patch.description maps to name
- empty failed workflow renders its container card

Fable:
- deriveLatestAgentSnapshot picks the winner by peeking revision, decodes
  only that roster (was: full schema-decode of every roster per recompute)
- idle Codex children get their own retention cap (25) — they never reach
  terminal status mid-session, so they were unbounded
- v1 collab receivers re-checked inside the v2 diversion branch (arrival-
  order race); task usage schema committed to typed RuntimeTaskUsage;
  Claude usage carries input/output/cache breakdowns; assorted nits

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-21 20:54:59 -07:00
..

Client Runtime

Shared client behavior for web and mobile. Public APIs are organized by package subpath. The package intentionally has no root export.

Public subpaths

Subpath Responsibility
authorization Bearer and DPoP authorization plus token persistence contracts
connection Targets, catalog, supervision, retries, registry, and onboarding
environment Environment identity, descriptors, endpoints, and scoped keys
errors Shared client error inspection
operations Multi-step application workflows
operations/projects Multi-step project creation workflows
platform Platform capability and persistence service contracts
relay Managed relay API and environment discovery
rpc HTTP/RPC clients, protocol, sessions, and subscriptions
state/<domain> Focused shared state, retention, reducers, and Atom constructors

Dependency direction

Platform applications provide platform services. connection composes those capabilities with authorization, relay, and rpc to supervise environment sessions. Independent state modules consume the connection registry and expose focused state or Atom constructors to application-owned runtimes.

Applications should import the narrowest relevant subpath. There is no broad state export: use domain paths such as state/shell, state/threads, state/terminal, or state/vcs. Subpath indices and explicitly exported domain files are public API boundaries; all other files remain implementation details.