Files
t3code/packages/client-runtime
Theo BrowneandClaude Fable 5 bead1e4eaf review: enforce queue cap in decider, scope steer fallback, fix preview handling
- Move the 50-message queue cap from the projector into the decider so
  the event stream, in-memory read model, and SQL projection can never
  diverge (Bugbot); overflow rejects with an invariant error surfaced to
  the composer. Cap covered by a new decider test.
- Scope the Codex turn/steer fallback to CodexAppServerRequestError so
  transport/protocol failures propagate instead of racing a duplicate
  turn/start (CodeRabbit).
- Only hand off optimistic blob previews for messages entering the
  timeline; queued-only acknowledgments revoke them, fixing an object-URL
  leak (CodeRabbit).
- Advance getCommandReadModel updatedAt from queued-message timestamps
  (CodeRabbit).
- Cover queued-message lifecycle in the threadReducer tests (CodeRabbit).

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-22 14:15:56 -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.