Skip to content

plugins: one-step install, inline consent and a picture-first catalog (P3) - #31366

Closed
nwparker wants to merge 27 commits into
nwparker/plugins-v2-12-plugin-listfrom
nwparker/plugins-v2-13-install-ux
Closed

nwparker wants to merge 27 commits into
nwparker/plugins-v2-12-plugin-listfrom
nwparker/plugins-v2-13-install-ux

Conversation

@nwparker

@nwparker nwparker commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 27 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2347 $\color{#cf222e}{\Huge{\mathbf{−}}}$​476 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1871
Prod 71 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4288 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2440 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1848

ELI5

Installing a plugin used to take two pop-up windows. Now a theme or language installs in one click, and a plugin that can run commands or code shows what it may do right on its page, above a single "Install & enable" button. The catalog also shows plugins as picture cards instead of a plain list.

What Changed

Stacked on #31107 (nwparker/plugins-v2-12-plugin-list).

Before: In Settings › Plugins, Install opened an "Install plugin" dialog that repeated the plugin's name. After the download, a second "Review plugin" dialog appeared on top. A plugin page loaded part of its content late, so the page jumped down after it opened. Plugins appeared as text rows with two-letter initials. Two set-once settings sat in a large card above the catalog.

After:

  • Content-only plugins (themes, icon themes, languages, syntaxes) install and turn on in one click, from the card or the page. An inline Undo stays for 10 seconds. A theme's page then offers "Use now" buttons for its themes.
  • Plugins that run commands, instructions, panels or a worker show "If you install , it can:" on the page. The section uses Orca's own security styling, so a plugin theme can't restyle it. It lists the warnings and permissions, and names any of your shortcuts the plugin would replace, before you agree. Its one button, "Install & enable", stays off until Orca has read the plugin's files. Reviewing an installed plugin happens on the same page with Enable / Keep off; Remove stays in its ⋯ menu.
  • The catalog is a grid of cards. Each card shows the catalog's cover image, or art drawn from what the plugin is: its theme colours, a code sample, its own shortcut keys. Plugin pages show the cover above the description, plus screenshots that open larger.
  • Pages render complete at first paint from the catalog's summaries, and installing doesn't move anything on the page.
  • Settings move to a ⋯ menu in the header: file-type suggestions, catalog sources, development folders, and turning plugins off.

Mechanism:

  • One click is decided by main, not the page. The card or page calls installMarketplacePlugin with enableIfData and the preview's expectedFingerprint. Main turns the plugin on only if the installed manifest is verified as data and its fingerprint matches. Otherwise the plugin stays off, and the page shows the consent. That main-side path landed in the schema branch; this PR wires the UI to it.
  • Code plugins are approved with consent(approve, reviewedFingerprint) using the fingerprint of the preview the page showed. Main refuses the approval if the installed bytes differ.
  • A page is pinned to the listing it opened. If the preview differs from it in catalog commit, release commit, content hash or execution profile, or the catalog changes or is refreshing, Install stays off and the page says "Newer version available".
  • Warnings come from the plugin's verified profile combined with its contributions, never from "has no worker". A panel plugin that also adds commands gets the commands warning. If Orca can't yet tell what the plugin contributes, it shows the stronger warning.
  • Previews are fetched only on hover intent: after a short pause, cancelled when the pointer leaves, the latest hover wins, and at most 12 per visit.

Why

The two dialogs asked twice for the same decision and showed the trust information only after the download. Putting the consent on the page, directly above the button that grants it, lets you read it before you act and removes both pop-ups.

Content-only plugins can't run anything, so the click is the consent, as in other editors' theme stores. That is only safe if main checks it, which is why the page asks and main decides by the verified manifest and fingerprint.

We considered keeping one confirmation dialog for code plugins. A modal still interrupts, and it would hide the plugin page you were reading. We also considered prefetching previews on idle. Each preview is a git checkout, so hover intent with a cap keeps network and disk use bounded.

Linked Issue

Stacked on #31107.

Visual Proof

Screenshots will be attached in a comment: before (the two dialogs and the late-loading page) and after (catalog grid, consent page, one-click with Undo, installed theme with "Use now"), at 1280 and 900, light and dark.

Testing

  • I manually tested these changes locally. macOS, dev build launched hidden against a copy of the preview catalog:
    • one-click install and Undo of a theme;
    • Install & enable of a commands plugin;
    • review of a bundled plugin;
    • the stale-catalog and loading states;
    • the lightbox, including a short window.
  • Automated tests added/updated:
    • per-field release mismatch on the page and in one-click;
    • expectedFingerprint is sent;
    • trust classification, including a capped catalog summary;
    • manifest reads keyed by installed revision;
    • disarm during refresh;
    • Undo failure;
    • pre-install shortcut conflicts;
    • lightbox keys, Escape and focus return;
    • card links and actions as separate tab stops;
    • hover prefetch limits.
    • The plugin-demo and plugin-marketplace-content e2e specs now install and review on the page and assert that no dialog appears. All 8 plugin e2e specs pass; plugin-demo's panel hot-reload step is flaky on the base branch too.

Not tested on Linux, Windows or SSH. Shortcut labels and keycap art pick ⌘/Ctrl from the platform, and all checks run in the host's main process.

Review

Start with use-plugin-page-model.ts (pinning, release match, trust inputs) and use-plugin-install-action.ts (one-click, approval, Undo). Then read PluginInstallConsent.tsx and plugin-access-profile.ts for the consent and warnings.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

  • Security:
    • one-click approval is decided in main from the verified manifest and fingerprint;
    • code plugins are approved only with the fingerprint shown;
    • consent stays on the host-owned security surface;
    • plugin images never sit inside trust chrome.
  • Backwards compatibility:
    • an older host ignores enableIfData and expectedFingerprint, so the plugin comes back pending and the page shows the consent;
    • a missing execution field or catalog summary gets the stronger warning.
  • SSH: previews and installs run where the plugin host runs, and controls disable before any slow work.
  • Performance:
    • no idle prefetch;
    • hover prefetch is capped at 12 per visit;
    • images load lazily from main's verified cache;
    • the settings scroller keeps a stable scrollbar gutter.
  • Folder workspaces: no change.

Checklist

  • This PR is small and focused: it is one feature, the install flow, across the list, page and consent.
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason (to be attached in a comment)
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass:
    • typecheck, the changed-code gate, and the settings/ui/plugin-catalog suites pass locally;
    • the full renderer run has one failure that also fails on the base (plugin-grammar-worker-client, "ErrorEvent is not defined");
    • full pnpm lint and pnpm build were not run; CI will cover them.

@nwparker
nwparker force-pushed the nwparker/plugins-v2-13-install-ux branch from f02fe65 to f13e8bd Compare October 21, 2026 06:50
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch 2 times, most recently from 9ac8391 to 63aee33 Compare October 21, 2026 12:24
@nwparker
nwparker force-pushed the nwparker/plugins-v2-13-install-ux branch from 9c1ee0c to 1ad4513 Compare October 21, 2026 12:24
@nwparker
nwparker marked this pull request as ready for review October 21, 2026 12:24
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch from 63aee33 to fc57ac1 Compare October 21, 2026 20:13
@nwparker
nwparker force-pushed the nwparker/plugins-v2-13-install-ux branch from 1ad4513 to b1f3d9b Compare October 21, 2026 20:13
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch from fc57ac1 to a9a0779 Compare October 24, 2026 11:45
@nwparker
nwparker force-pushed the nwparker/plugins-v2-13-install-ux branch from 38e8e0a to 3afb404 Compare October 24, 2026 11:55
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch from a9a0779 to 5941b71 Compare October 24, 2026 13:32
@nwparker
nwparker force-pushed the nwparker/plugins-v2-13-install-ux branch from 3afb404 to 605d163 Compare October 24, 2026 13:32
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch from 5941b71 to d09bad7 Compare October 25, 2026 05:23
@nwparker
nwparker force-pushed the nwparker/plugins-v2-13-install-ux branch from 605d163 to b9ce472 Compare October 25, 2026 05:23
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch from d09bad7 to 0841372 Compare October 26, 2026 08:16
@nwparker
nwparker force-pushed the nwparker/plugins-v2-13-install-ux branch 2 times, most recently from f6616e0 to d270f1e Compare October 26, 2026 12:04
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch from 0841372 to 9de70e4 Compare October 26, 2026 12:04
@nwparker
nwparker force-pushed the nwparker/plugins-v2-13-install-ux branch from d270f1e to 5bb25bc Compare October 26, 2026 12:32
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch 2 times, most recently from 430af60 to 610baec Compare October 28, 2026 04:58
@nwparker
nwparker force-pushed the nwparker/plugins-v2-13-install-ux branch from 5bb25bc to fafabd1 Compare October 28, 2026 04:58
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch from 610baec to 03bfa24 Compare October 28, 2026 05:31
@nwparker
nwparker force-pushed the nwparker/plugins-v2-13-install-ux branch from fafabd1 to 0a18703 Compare October 28, 2026 05:31
@blacksmith-sh

This comment has been minimized.

@nwparker
nwparker force-pushed the nwparker/plugins-v2-13-install-ux branch from 0a18703 to 4310dec Compare October 28, 2026 05:45
…atalog

Settings > Plugins no longer opens a confirm dialog and then a review dialog.
- Content-only catalog plugins install from their card or page in one click; main
  turns them on only when the verified manifest is data. Undo stays in place for 10s.
- Plugins that run code or instructions show "If you install <Name>, it can:" on the
  host security surface above one Install & enable, which stays off until the access
  rows are read, and approves exactly the fingerprint shown. Review of an installed
  plugin happens on its page too (Enable / Keep off); Remove stays in its menu.
- The catalog is a grid of cards drawn from what each plugin is (its theme colours once
  installed, a code sample, keycaps), with the name as a stretched link and one action.
- The page pins the listing it opened, says "Newer version available" instead of
  swapping rows, and previews are prefetched only on hover intent, capped per visit.
- The plugin system switch, file suggestions, catalog sources and development folders
  move into a header menu; amber text uses a contrast-safe token.
…ries, disclose replaced shortcuts

- The page pins the listing it opened; a preview of any other release (commit, catalog
  commit or execution profile) leaves Install & enable off and shows "Newer version
  available". One-click installs from a card refuse the same mismatch.
- Warnings are the union of the verified profile and the contributions: a panel that
  also adds commands gets the instructions warning, never "bounded" or "own files only";
  unknown contributions over-warn. Access rows follow the same rule.
- Shortcuts that replace one of yours are named in the consent before install, from the
  manifest or the catalog summary; the shortcut list itself stays in Adds to Orca.
- Pages paint from the catalog summaries, capabilities and theme palettes, and show the
  cover (or the card's art) as a hero, with screenshots in a strip and lightbox.
- Installing fills a reserved status line and keeps its action row (Undo, Use now), so
  the page doesn't move; the settings scroller keeps a stable gutter.
- Row art names the plugin type instead of initials, rows drop the "Needs review" word,
  the content hash moves into the menu, and card art is tinted and coloured.
nwparker and others added 23 commits October 28, 2026 03:43
…us line follow what an installed plugin carries
…nifest, polish the page

Code review:
- A page or card arms Install only when the preview matches everything the listing showed
  (catalog commit, release commit, content hash, execution); any change, including a
  catalog-only refresh, reads "Newer version available". One-click installs send the
  preview's fingerprint as expectedFingerprint, so main turns on only those bytes.
- Install stays off while a catalog refresh is in flight.
- Trust uses the full verified preview manifest when present; a capped catalog summary
  counts as unknown and gets the stronger warning.
- The installed-manifest read is keyed by plugin and installed revision, so a same-key
  update never pairs old contents with the new fingerprint.
- A failed Undo shows its error on the card or page and keeps Undo to retry.
- The security-surface test now covers the inline consent instead of the removed dialog.

Visual:
- Lightbox: close button clear of the image, "1 of N" with previous/next and arrow keys,
  content scrolls on short windows, focus returns to the opening thumbnail.
- Keycap art shows the plugin's own first shortcut, larger, with the platform's keys.
- The hero fills the content column; a screenshot identical to the cover isn't repeated.
- "Change in Shortcuts" is a link; the chip says "Adds commands" (or "Runs a worker",
  "Adds a panel", "Content only"); the disabled button says "Reading what it can access…".
- A content-only plugin's action row keeps fixed slots, so its note doesn't move on install.
…age, final review fixes

- The page shows the decision (Install, the consent, Enable) before the picture, and the
  picture is capped and cropped from its centre, so the button is in view at 1280x800 and
  900x700. Nothing grows after first paint.
- The consent gives no access verdict while the plugin is still being read.
- A file-type suggestion opens the plugin's page instead of the old install dialog; that
  dialog now serves updates only.
- A theme plugin reserves its "Use now" line from first paint; the action slot and its
  button share one width.
- The file-suggestion toggle reports a failed save; a failed Undo is reported once, on
  the card or page that offered it.
- Cards show a plain trust chip ("Content only", "Adds commands"); the local and bundled
  group reads "Bundled & local".
- Install error copy moves into the protected plugin namespace, and the new consent
  components join the language-pack security pins.
- Dead code goes: the keybinding consent preview (its conflict helper stays), its strings,
  trustRunsNothing and the access-only preview plumbing.
…in on/off switch in the UI

- Plugin page: Install (content only), Install & enable (disabled until its access is read),
  Enable / Keep off (installed, waiting for review) and the installed switch share one slot
  top-right of the title. The consent sits directly under the header with no button of its
  own; the "Can't reach anything outside its own files" note sits on the line under the
  publisher, which every state reserves, so nothing moves between states.
- Removed "Turn off plugins" from the ⋯ menu and the "Turn on plugins" button from the off
  state. The setting and all gating stay: off now comes only from policy, and the page says
  so without a switch.
- e2e journeys turn plugins on through the setting and use the page's one button.
…card menu

Plugins stay opt-in, so the off state keeps its Turn on button; only the
menu's Turn off item stays removed. Installed catalog cards get a sibling
more-actions menu with Remove (immediate, inline error) and Turn off/on,
inside a fixed-width action slot so the footer doesn't shift.
… Use now buttons

The toast action opens the plugin page rather than applying a theme, so it
always says Try it. Terminal themes often share their app themes' names, so
their Use now buttons carry a terminal icon. Update the update-review e2e for
the Use now accessible names.
… enables it

Installing (card or page) or enabling a plugin that adds themes now applies its
app theme (matching the current light/dark mode), icon theme and terminal theme
at once, with a 'Now using' toast whose Switch back restores the previous
selections. Updates, startup discovery and catalog refreshes never apply.

Co-Authored-By: Claude <[email protected]>
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch from 03bfa24 to 9e718e2 Compare October 28, 2026 10:53
@nwparker
nwparker force-pushed the nwparker/plugins-v2-13-install-ux branch from 4310dec to 5a78039 Compare October 28, 2026 10:53
@nwparker nwparker mentioned this pull request Oct 28, 2026
7 of 9 tasks
@nwparker

Copy link
Copy Markdown
Contributor Author

Folded into #35470 (Plugin Alpha), which lands the rest of the plugin stack in one PR.

@nwparker nwparker closed this Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant