Repository navigation
feat(browser): add experimental.browser v4 RPC client, state machine, tunnel proxy, and agent policy - #275
Merged
Conversation
… tunnel proxy, and agent policy
|
PR test build retired — merged into |
Hona
added a commit
that referenced
this pull request
Nov 20, 2026
…..UP-117 (#284) - Fold verified fleet PRs #259, #267, #268, #269, #270, #271, #272, #273, #275, #276, #277, #279, and #282 (Rune e6deb869: #1297, #1298, #1299, #1300) into docs/upstream-sync/ledger.{json,md} - Split UP-095 (#63002) transparently across active browser streams (WS-1, BROWSER-UI, PREVIEWS, BROWSER-TOOLS, WS-9), reassign UP-100 to BROWSER-UI and PRE-08 to BROWSER-TOOLS - Track open tab-groups packaged-default regression on UP-062 (fix PR #278 open) and record closure of Settings > Shortcuts hidden-command regression on UP-064 (#279) - Audit upstream anomalyco/opencode 92d35f8e18..bfee96a859 (+11 commits: 7 skipped, 4 added: UP-114..UP-117) and update radar routing
Hona
added a commit
that referenced
this pull request
Nov 20, 2026
…18..UP-122 (#295) - Fold verified fleet PRs #278, #285, #287, #288, #289, #290, #291, and #293 (Rune dc8f7f72: #1301, #1302 focus rescue verified Send+Enter -> effort) into docs/upstream-sync/ledger.{json,md} - Close UP-062 packaged-default regression (#278), UP-095-UI / UP-100 / UP-106 / UP-109 / UP-117 (#285, #289), and PRE-08 (#287); reassign UP-115, UP-116, UP-075 to BROWSER-UI - Add separate Reviewed column for browser rows tracking retrospective security reviews on merged PRs (#245, #268, #272, #277, #288, #275, #287, #285, #289) and pre-merge holds (#274, #280, #281, #283, #286, #292, #294, and BROWSER-TOOLS PR 3+) - Audit upstream anomalyco/opencode bfee96a859..2002222d13 (+6 commits: 1 skipped, 5 added: UP-118..UP-122) and refine radar routing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the pure-Rust
experimental.browserv4 RPC client, explicit attachment/proxy state machines, authenticated loopback tunnel proxy, and agent-specific browser policy helpers (WS-1 Phase 4 PR 1 +PRE-08#63500).crates/opencode-kit/src/client/browser_rpc/:types.rs:experimental.browserv4 wire types (Tab,BrowserState,Command,Outcome,WireFile,TunnelTarget,TunnelRead), limits,FailureCode,TabID/FileID/Refvalidators, and SSErpc.experimental.browser.controldecoder.http.rs: HTTP client overPOST /api/rpc/experimental.browser/:method?location%5Bdirectory%5D=...with abortable heldattach,tunnel.open, andtunnel.readcalls viaureq::Agent::shutdown, plus typed error classification (404/405/501->Unsupported,rpc.unavailable->UnavailableforPRE-08, missing session ->Missing).machine.rs: explicitAttachMachine(enum AttachState+step -> Vec<AttachEffect>) handlingPRE-08retries onplugin.updated/server.connected, exponential backoff, cancel/in-flight tracking (is_request_in_flight),Replaced/Missing/RemoteUnproxiedblocks, and MCP suppression transitions.proxy_machine.rs&tunnel_proxy.rs: authenticated127.0.0.1:0HTTP/CONNECT/WebSocket loopback proxy (384-bit constant-time Basic auth,Proxy-Authorizationstripping, strict scheme/authority validation, half-open TCP support, RAII connection/abort cleanup, zero direct local dialing).crates/browser-policy/src/agent.rs:extension_origin,extension_page_refusal,matches_url, andcheck_typed_cdp(forbiddinguserGesture: true, raw host upload paths,Extensions.*,Browser.*, and keepingcheck_cdpuntouched).getrandom 0.3.4already inCargo.lock), zerocontract.jsonedits, zeroENGINE_REVISIONbumps.Proof
Driven live in
proof/browser-tools/pr1/summary.json:opencode-ref @ e51247f626: live SSEserver.connected+ heldattach+attachedv4 +statepublish +TunnelProxyend-to-end (407unauth,400bad scheme, half-openGET200 withProxy-Authorizationstripped,CONNECTtunnel 200 round-trip) + 0 msAbortHandle::abort()+ missing-sessionBlocked::Missing.harness/older-server.ts --profile v2.2.6(404, 405, 501) andv2.3.0(404) ->AttachState::Unsupported,suppressMcp: false.PRE-08rpc.unavailable->plugin.updated&server.connectedretry; servercanceland mid-command disconnect posting 0 late results; post-reconnect command succeeding;replaced+UserWake;incompatiblev99 refusal; 29/29browser-policychecks.scripts/guardrails.ps1(5/5), farmcargo check --workspace,cargo clippy -p browser-policy -- -D warnings,scripts/web.ps1 -Check(1026 files in 47 crates).