Repository navigation
fix(browser): refuse local rune_mcp browser tools on remote/RPC-attached servers and harden check_cdp - #296
Merged
Merged
Conversation
…hed servers and block check_cdp contextId/userGesture
…te-dual-route-cdp # Conflicts: # apps/desktop/src/surfaces/browser/mod.rs # crates/browser-pane/src/protocol.rs
|
PR test build retired — merged into |
…ow sticky suppression, and harden CdpCall/check_cdp
…te-dual-route-cdp # Conflicts: # apps/browser-engine/src/engine.rs
… 800-line ceiling
…Blocked::Replaced suppressed
…te-dual-route-cdp # Conflicts: # apps/desktop/src/surfaces/browser/mod.rs # crates/browser-pane/src/client.rs # crates/browser-pane/src/protocol.rs
…te-dual-route-cdp
…egacy MCP until Unsupported/Unavailable, and fix #292 merge regressions
Hona
added a commit
that referenced
this pull request
Nov 20, 2026
- Fold security-confirmed merged PRs #292 (6d7a6ed, WS-1 mandatory RemoteServer proxy), #294 (ae3e910, BROWSER-UI file-link/click-to-run fix with known symlink/junction root limitation), and #274 (5da6474, WS-9 engine MV3 extension host, inert without --extension flags) - Update browser Reviewed column: #301 in rework (#287 eager-attach time_updated regression still live on dev), #296/#298/#302/#303/#305/#306 in rework, #307 open for pre-merge security review - Audit upstream anomalyco/opencode fe8def6854..4122af0206 (+2 commits: 1 skipped #65255 core/codemode, 1 added UP-135 #65215 -> WS-8)
…te-dual-route-cdp # Conflicts: # apps/browser-engine/src/engine.rs # crates/browser-policy/src/lib.rs
…te-dual-route-cdp
…te-dual-route-cdp # Conflicts: # apps/desktop/src/plugin_host/native/browser/scope.rs # crates/browser-pane/src/client.rs
Hona
added a commit
that referenced
this pull request
Nov 20, 2026
…n, check_local_mcp_allowed, send_cdp, mod cdp, and preview guards
Hona
added a commit
that referenced
this pull request
Nov 20, 2026
Hona
added a commit
that referenced
this pull request
Nov 20, 2026
Hona
added a commit
that referenced
this pull request
Nov 20, 2026
…P-143 (#318) - Fold confirmed merged PRs #307 (a1e7d0d, click-to-load reply videos), #306 (b5167f7, atomic agent_driven), #301 (6522f11, routed-session attach + recency closing #287 regression), #296 (95cb36a, legacy rune_mcp suppression + Half::is_builtin + check_cdp), #303 (6fb05ce, oc-preview:// app routing + raw file:// ban completing UP-095-PREVIEWS), and #316 (6e98fc2, Rune 7a707454 / #1307 strict local video opening) - Add missing browser follow-up rows UP-095-3P-CONTRACT (#296 narrow third-party plugin browser contract gap) and UP-095-PROMPT-GATE (new-session-start-only prompt gate split from #302) - Record #302 split (tunnel vs gate), #314 masking stream paused pending owner decision on agent-tab contexts, and updated browser Reviewed entries - Audit upstream anomalyco/opencode 4122af0206..b9a60d9d07 (+11 commits: 3 skipped, 8 added UP-136..UP-143)
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
Closes
notes/review-rd-tools.mdFindings 1 & 2, Round-3, and Round-4 READER-10 findings on#296, cleanly merged withorigin/dev(6522f112, including#307click-to-load video,#306agent_driven,#301official routed-session attach & non-mutating recency,#274extension host,#292remote proxy, and#294file-link security).dev6522f112(#307+#306+#301) Merge Reconciliationapps/desktop/src/plugin_host/native/browser/scope.rs(#296+#306): Kept#306'splugin_id/driver()/mark_tab_driven()alongside#296'scheck_local_mcp_allowed(), usingvmx.half.is_builtin("browser")as the single bundled-tier test (replacing#306's redundantapp.plugins.listscan inTabScope::driverwithself.is_builtin_browser).apps/desktop/src/plugin_host/runtime/plugin.rs&plugin_host/mod.rs:#296'sHalf.tier,Half::is_builtin(&self, id: &str), andPluginHost::is_builtin_plugin(&self, id: &str)remain the single canonical definition.crates/browser-pane/src/client.rs:641-653(#296+#306): Kept#306's 5-tuplepromote_open(t.prompts.agent_driven) AND#296'selse if matches!(t.context, ContextKind::RemoteServer { proxy: None, .. })suspended refusal after proxy-promotion recovery.crates/browser-pane/src/find.rs,apps/desktop/src/surfaces/browser/mod.rs,apps/desktop/src/plugin_host/native/browser.rs: Clean auto-merge preserving all#296+#306+#292+#294additions.apps/desktop/src/surfaces/browser/rpc/mod.rs(#296+#301): Clean auto-merge keeping#301'srouted_sessions&SessionAttachment::dropbeside#296'sserver_verdicts, one-shot capability probe, and stickyLegacyAllowedsuppression.Round-4 READER-10 Fixes (Previously Confirmed at
4ee64ceb)Tier::Bundledcheck (plugin.rs,plugin_host/mod.rs,scope.rs):Half.tier+Half::is_builtin("browser")closes forgery byTier::Override(<config>/plugins-override) andTier::Dev(--plugin-dir) plugins declaringid = "browser".legacy_browser_allowed+ one-shot capability probe (http.rs,rpc/mod.rs): Non-mutatingPOST /api/rpc/experimental.browser/state({ "input": {} }) keepsLegacyAllowedsticky per(window_id, EndpointKey)across Home/Draft/empty sessions/tab close/slow SSE until reconnect orplugin.updated.POST /attach+ SSEattached(~10–50 ms once routed; bounded byREGISTER_TIMEOUT_MS = 15 sattypes.rs:36, then exponentialBackoff1 s–30 s).packages/plugin/src/gui/browser.ts:9-57) exposesattached/canOpen/open/openFile/experimental.{open,close};#296currently refuses evenOpenAsyncon modern local/remote servers until follow-up PR "expose official's narrow browser contract to third-party plugins" (logged with INTEGRATOR).Security Scope
contract.jsongrowth, zeroENGINE_REVISIONbump, zerostruct Appgrowth).Tier::Bundled"browser"plugin UI chrome only outside MCP; legacybrowser_*strictly on local same-machine servers provenUnsupported/Unavailable.Driven Verification on Merged Head (
cd7a85ee)#296proof (proof/browser-tools/fix-a/summary.json): 42/42 PASS (remote isolation,task.spawn/task.delay/Contracts,--plugin-dirforgingid = "browser"refused,v2.2.6Home/Draft zero-session probe +plugin.updatedinvalidation,Blocked::Replaced,Backoff, HTTP500before first attach ->0legacy tools,v2.2.6/v2.3.0fallback +check_cdp, engineCdpCallsession_idrefusal).#306probe 1 (prove-fix4-agent-driven.ts, adapted Probe B after#296refuseduserGesture: trueto click<input type="file">viaInput.dispatchMouseEvent): ALL PASS (coldStartAuthBlocked.anyAuthPrompt: false,coldStartFileChooserBlocked.tabId: 2,coldStartAgentExtRefused.reason: "browser.address.web",humanTabFlippedBeforeNavAuthBlocked.anyAuthPrompt: false,reconnectTabListAgentDriven: { tab1..tab4: true }).#306probe 2 (prove-fix4-desktop.ts): ALL PASS (finding1_3pNavigateMarkedBeforeNav: true,finding3_oldEngineAuthAutoCancelled: true,finding2_ui:hasPluginNotice: true,hasPluginPermCopy: true,hasFalseAgentCopy: false,hasAuthModal: false).#292proofs (prove-fix1-v2.ts&prove-fix1-r4.ts): ALL PASS (remoteDirectLeaks: [],remoteUdpPackets: 0,unsavedPreservedAfterResume: "keep-me-42",defaultTabDownload.survived: true,contextMenuProxyDropCancel.menu2Id: 2).5/5(engine.rs1,489/1,500,client.rs1,453/1,500),web.ps1 -Check,browser-policyaarch64-apple-darwin&x86_64-unknown-linux-gnuviatools/cargo.ps1,--workspace --all-targets, desktop + engine builds: ALL PASS.Held unmerged for READER-10 merge check.