Repository navigation
Conversation
31f812a to
764defd
Compare
764defd to
391a97c
Compare
838b3aa to
2a92b2b
Compare
2a92b2b to
ee06101
Compare
ee06101 to
b4b0e97
Compare
b4b0e97 to
0ffc62c
Compare
9c31018 to
dd6c43f
Compare
dd6c43f to
f2b4d34
Compare
|
Closing because current main ( The extracted
|
STA-4150: https://linear.app/stably/issue/STA-4150/refactor-remote-browser-to-client-hosted-electron-webviews
Stacked on #14553. This production-inert transport stage adds bounded bidirectional JSON RPC requests to the existing authenticated browser-host attach subscription, then returns validated completed/failed page-command results over that exact connection. Result authority stays bound to the negotiated runtime/device/epoch/host/page tuple; exact duplicate acknowledgement remains idempotent, while missing send support, handler failure, timeout, server rejection, malformed acknowledgement, and transport loss fail closed so the server records an unknown outcome.
Causal evidence: the unchanged subscription oracle was red on parent 876f958 with
TypeError: subscription.sendRequest is not a function. The candidate passes exact-ID routing under reverse-order replies, rejects unknown/duplicate IDs, caps 32 pending requests plus a 16 MiB/64-frame control queue, releases aggregate queue/native-socket memory exactly, and proves serialization failure consumes no capacity. Fresh review also reproduced duplicate terminal callbacks on socket-registration and queue-claim denial; an idempotent terminal transition and deterministic regressions make both paths exactly once.Validation: 10 focused transport tests; 53 focused transport/lease/integration tests; 809 runtime/browser/shared files with 9,699 passed and 24 existing skips; full node/CLI/web typecheck; mobile-facing import scan; cross-version wire compatibility; verified CLI build; native and type-aware zero-warning audits; changed-code quality; reliability and max-lines gates; formatting and diff checks; three clean fresh reviews after the callback fix.
Compatibility:
RemoteRuntimeSubscription.sendRequestis optional so structural old-client wrappers remain valid. Command results are used only after the separately echoed page-command v1 negotiation; old/non-v1 ready/revoked behavior, server/offscreen placement, SSH/WSL/folder/worktree behavior, terminal channels, and mobile data remain unchanged. No stream opcode, capability advertisement, persistence schema, dependency, production RPC registration, production caller, placement default, or Electron UI behavior changes.Activation remains blocked on real Electron/WebContents lifecycle wiring, a production browser-host registry and execution-host resolver, aggregate result backpressure versus the 256-command ledger, reconnect inventory/persistence/replay and unknown-outcome reconciliation, dispatcher abort/destruction ownership, capability eligibility for headed/browserless clients, and real headed/headless/browserless/SSH/WSL/mixed-version/physical cross-platform proof. This PR does not enable client placement, so visual proof is not applicable yet.