Files
orca/mobile/src/browser
Jinwoo-H b67d7bbceb refactor(mobile): restore main's RPC client split under the hybrid transport
Replace the 1,202-line rpc-client.ts closure with main's DirectRpcClient
decomposition (12 restored modules) and re-apply the branch's 33-hunk delta
onto it: the outbound backpressure queue and process memory budget, the
inbound frame queue with overflow/oversize close, JSON structure admission,
the extracted binary-frame handler, terminal multiplex routing with
sendTerminalBinaryFrame, accounts/files server-subscription teardown, and
protocol-only endpoint redaction.

Deletes rpc-client-contract.ts, rpc-client-request-state.ts and
rpc-client-subscribe-options.ts, which duplicated main's rpc-client.ts and
stream registry. Four helpers keep every restored module under the 300-line
cap without a suppression, so rpc-client.ts drops its max-lines override.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-01 17:59:08 -04:00
..