Repository navigation
feat(browser-pane): wire MV3 extension lifecycle, DNR filter gate, popup surface, and restart-restore - #283
Merged
Merged
Conversation
… permissions review crate
…pup surface, and restart-restore
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
…ings > Browser > Extensions UI
…r3-pane-extensions
…ions and settings
|
PR test build retired — merged into |
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
Brings MV3 browser extension lifecycle (
crates/browser-pane), per-user desktop extension management (apps/desktop), and official-paritySettings › Browser › ExtensionsUI (plugins/browser) ontodev(1dc6a786, incl.#280,#274,#296,#301,#303,#305,#298,#312,#316). Held unmerged until the mandatory shipping gate clears.Changes
browser-paneextension lifecycle, DNR filter gate, popup surface, and restart-restore (crates/browser-pane/src/{protocol,machine,client,find,extensions,sidecar,transport,preview,prompts/host}.rs):HostMsg::Hello.extensions,HostMsg::OpenTab.{allow_extension_pages, is_popup, ext_open_request_id}on#288'sContextKind(alwaysallow_extension_pages: false, is_popup: falseon agent/isolated tabs),ClickExtension,ListExtensions,UninstallExtension,ReloadExtension,CancelExtensionOpenTab,Ready.extensions, andEngineMsg::Extension*(all wire fields#[serde(default)]/skip_serializing_if).--extension <id>:<sha256>:<dir>specs on spawn (transport.rs), implements explicitFilterGateState(Ready | PendingReady | Waiting), anchored OSRPopupStatewith[25..800]×[25..600]RTL-awarepopup_bounds(), boundedExtensionOpenTabqueue (<= 16), zero-restart disable/re-enable, and transparent sidecar restart-and-restore.apps/desktop/src/surfaces/browser/extensions.rs,apps/desktop/src/plugin_host/native/browser/{extensions,web}.rs):BROWSER_EXTENSIONSin anopencode_kernel::SlotinsideBrowserFeature(zero newstruct Appfields).ExtensionManagerstrictly viaExtensionManager::in_user_data(&crate::dirs::data())(neverExtensionManager::new; sweeps.staging-*once; refuses unattended non-rooted runs).InstallMachine::stepwith a monotonicInstant-derived clock (now_ms()), running CRX3 download, unpack, copy, and swap off the UI thread (rune_luau::spawn_blocking), unloading running copies before swap on Windows, and persistingStoredExtensionviaopencode-storage(plugin.browser/extensions) only after swap succeeds.Browser:Ext*sync/async method toscope.is_builtin_browser && scope.tool_sid.is_none() && scope.in_flight.is_empty()(unreachable by MCP tools and third-party plugins); folder installs useTx::open_folder(Luau never passes raw paths); errors map to stable catalog reason codes.Settings › Browser › ExtensionsUI (plugins/browser/{extensions.luau,settings.luau,init.luau,plugin.toml,locales/en.json,icons/puzzle.svg}):opencodeorigin/devb9a60d9d078d87bfb90f039e431090508f88ac02(packages/gui-plugins/src/browser/{settings.tsx,settings-view.ts,choices.tsx,i18n/en.ts},packages/ui/src/icons/catalog.ts:479,packages/app/src/settings/settings.css:777-803) andproof/reference/e51247f626/ws9/:settings.tsx:130-153, 374-421): Section heading"Extensions", installed rows with 20×20 icon /puzzle.svgfallback (choices.tsx:24-40), version + middot + compatibility verdict (partialmuted /unsupportedwarning amber + hover tooltip listing cause & missing features) orchanged/error alert,outline-trashremove icon button + enable switch, bottomsettings-browser-extensions"Add an extension"row with+ Addbutton, and"Some extensions may not work here yet"footer note (gap: 16, page section stackgap: 32matchingsettings.css:780,795).Add an extensiondialog (settings.tsx:432-748): Large store URL input +Addbutton, status/error banner,"From your browsers"header + Chromium profile selector popover +ChoiceRowlist (minW = 96Add/Add anyway/Addedbuttons, discovered only on explicit user click), hairline divider + collapsed"For developers"disclosure ("Load an extension from a folder."+"Choose folder"), and contrast"Done"footer.InstallReviewconfirmation step (settings.tsx:524-535, 699-715, 750-840+review-rd280.md): Icon +'Add "{{name}}"?',"It can:"rendering everyExtensionAccessvariant (allSites,someSites,cookies,activity,clipboard,proxy,blockRequests,manageExtensions,externalConnect,webAccessible), expandable"On these sites:"list, warning-highlighted"It now also wants to:"update delta, status-dot compatibility verdict + tooltip, unvetted local source warning, replaces notice, and hard-blocked Approve onManifestV2andDisallowedPermission.Verification
scripts/guardrails.ps1: 5/5 passed (client.rs1,455/1,500,engine.rs1,423/1,500,94/94App fields,0files >800 in desktop/features/crates).OPENCODE_RUNE_EMBED_PLUGINS=1 cargo.ps1 check --workspace: 0 warnings.cargo.ps1 check -p browser-pane --no-default-features: 0 warnings.scripts/web.ps1 -Check: 0 warnings (opencode-web+ web clock across 1,042 files / 48 crates).luau-lsp analyze(plugins/browser/{extensions,settings,init}.luau): 0 errors.Mandatory Shipping Gate (
review-rd274.md&review-rd280.md)Extensions MUST NOT be enabled for users (this PR remains unmerged) until ALL SIX are on
devand independently confirmed:#274(engine MV3 host + fail-closed guard): MERGED todevat5da64743(macOS live proof passed onair; waiting on newly published signed engine).#298d6cf8659, design innotes/upstream-sync/status-ws9.md§10): pending design go & review.#312(1b-1, Find caller-scoping): MERGED todevat1dc6a786(treeb1dbac8b).#303(engine-widefile://ban &oc-preview://routing): MERGED todevat6fb05ce1.#319): in review.