Repository navigation
feat(browser): the Add extension dialog redesigned (opencode#66355) - #1216
Merged
Merged
Conversation
Hona
marked this pull request as ready for review
November 25, 2026 17:46
Hona
added a commit
that referenced
this pull request
Nov 25, 2026
This was referenced Nov 25, 2026
Hona
added a commit
that referenced
this pull request
Nov 25, 2026
…aft (#1250) No new official commit since 3ac14c053c. UP-236 (the Add extension dialog redesigned) is ported by #1216, with what ran, the two cases still to run and the one open difference. UP-240 names its draft, #1249, and its line on ours is put right: Rename session edits the title in place, it does not open a dialog.
Hona
added a commit
that referenced
this pull request
Nov 25, 2026
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.
Ports opencode#66355 (
5050225a09): the browser's Add extension dialog redesigned.What changes
packages/gui-plugins/src/browser/settings.tsx:672-727).settings.tsx:501-509,:709-722).settings.tsx:740-760).settings.tsx:642-671).settings.tsx:589). Done and the confirm step's Add use the look of the composer's send button (settings.tsx:761,:773).i18n/en.ts:134,:241,:384).A difference of ours, found while porting and closed here
The picker listed the browsers in a fixed order, their profiles by folder name, and only profiles that hold an
Extensionsfolder (crates/browser-extensions/src/sources.rs,list_chromium_sources). Official gives the dialog the browsers and profiles of the page's import rows, the one used last first, the Chromium ones only (settings.tsx:90,:474;packages/gui-plugins/src/browser/profile/sources.ts:149-165), so the profile it opens on is the one the person uses, and a profile without extensions says so. Ours now takes the same list (plugins/browser/init.luau,openAddExtensionDialog).How
plugins/browser/extensions.luau:renderAddDialogis laid out again, with onecandidateRowfor a list row; the confirm step gets the background and the button look.plugins/browser/init.luau: the picker's menu placement; the disclosure's state goes.plugins/browser/locales/en.json: three new strings, three changed, three dropped. No other language held the dropped or changed keys.Official's plugin API gains the button variant
submit(packages/plugin/src/gui/host-apis.ts:1745-1750). This plugin API already draws that look under the nameprimary(crates/opencode-plugin-runtime/src/ui_nodes.rs,variant), so the contract is not touched.How it differs from official
settings.tsx:698,max-h-[50vh]). Ours keeps the fixed 280 it had before this change: a plugin's layout has no size that is a share of the window. On a tall window official shows more rows at once. Closing it needs a contract addition (a greatest height as a share of the window), which is a follow-up PR once the contract numbers in flight have settled.Seen while porting, not part of this change:
packages/app/src/runtime/plugin/ui.tsx:25-41). Ours does so for a small button only; a normal or large one turns into the loading look with the loader alone (crates/opencode-plugin-runtime/src/ui_nodes.rs,button). In this dialog that is the large Add beside the link field. It is in the host, for every plugin: fix(plugins): a busy plugin button keeps its look and its words #1220.Run
A PR build is of the PR's own head. Head
eefdf6deeholds the Rune pin bump #1192. The dialog reads other browsers' profiles, so every pass is kept as the import dialog's is (#1202): the profile variables point under a scratch root of made-up profiles and extensions and are checked in the app's own environment; no Add and no Load from folder is pressed; the root is deleted.eefdf6dee(Windows x64 CI build, run45646015198; headless, the app's fixture file, no server; 8 launches, every exit 0). Before: fix(deps): pin rune to d5c7a5ad, the effect warm for backdrop blur only (214 commits, rune#1962-#2246) #1192's own PR build, headcc991c6505, run45629508899:devon the same pin without this change.eefdf6dee), sealed the same way, the root made with one browser and one profile; 6 launches, each exit code read whole and 0. 5: the list's head reads 'From' and the browser's name alone; no picker; fourteen rows scroll inside the frame. Before: 'From your browsers', no frame. 8: the linkhttps://example.test/not-a-storetyped and the field's Add pressed: a red line, 'The store did not provide this extension. Check the link.', stands under the field and above the frame, outside the scroller; the field is empty again. The app made no connection (0 TCP rows of its process in 120 readings 100 ms apart; with a loopback link, 0 connections offered to a listener), and nothing was written under the root's extension folders. Not read: the installed extensions' list afterwards.The cases:
packages/gui-plugins/src/browser/choices.tsx:14-16,settings.tsx:683).Not reached by this run: the confirm step (it needs an extension that installs) and the folder action's spinner (it needs the system's folder picker).
The picker's order is part of case 2: the profile used last is the one the dialog opens on; before, a fixed order of browsers.