Skip to content

feat(plugins): one plugin list with plugin pages, Update all and clear states - #31107

Closed
nwparker wants to merge 20 commits into
nwparker/plugins-v2-11-schemafrom
nwparker/plugins-v2-12-plugin-list
Closed

nwparker wants to merge 20 commits into
nwparker/plugins-v2-11-schemafrom
nwparker/plugins-v2-12-plugin-list

Conversation

@nwparker

@nwparker nwparker commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 18 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1726 $\color{#cf222e}{\Huge{\mathbf{−}}}$​271 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1455
Prod 57 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5811 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1389 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4422

ELI5

Settings > Plugins used to show two separate lists: what you have installed, and a catalog browser. The same plugin could show up in both, and each row put its buttons in a different place. This PR turns them into one list. Every plugin appears once, every row has its controls in the same spots, and clicking a plugin's name opens a page that explains it: what it adds, what it can access, and its version history.

What Changed

Before

  • The installed list and the catalog browser were two different components with different row layouts. An installed catalog plugin was listed in both.
  • Errors were repeated: a coloured status, a banner and a button could all describe the same crash.
  • Details opened in a dialog. There was no way to see what a catalog plugin adds before you started installing it.
  • With the plugin system turned off, the page was mostly empty.

After

  • One list. Tabs for All, Installed (with a count) and Updates (with a count). The Updates tab keeps its space when there are none, so the search field doesn't move. Installed plugins come first, then one group per catalog. Each plugin appears once. A group shows 6 rows, then "Show N more".
  • Order. Plugins that need you (blocked, review, stopped, can't load) come first, then ones with updates.
  • Fixed row slots. Every row has the same slots: avatar, name with publisher and description, status word, one primary action, enable switch, and a ⋯ menu.
    • Only one action shows, picked in priority order: Remove (blocked), Review, Restart (crashed), Update to version X, View error.
    • A crash is reported once, in the status word ("Stopped"). The switch also gets a small red mark, but the status word means the state isn't shown by colour alone.
  • Search and filter. Search looks at names, descriptions, publishers and categories. A filter popover narrows by category, and by catalog when there's more than one. There is an empty state with "Clear search", and a live region that announces how many results there are.
  • Update all. On the Updates tab, one review dialog lists every pending update. It keeps the set it opened with while installs reload the list, retries only failures, skips updates that need a newer Orca, and opens review for each updated plugin that now needs it, one after another. Updates that ask for new access are expanded to show exactly what's new; the rest take one line. You can untick any of them. They install one at a time.
  • Plugin page. Clicking a plugin's name opens its page, replacing the list. The page shows:
    • the header and actions;
    • alerts (blocked, stopped, can't load, needs review, needs a newer Orca);
    • what it adds, each item named (themes, icon themes, syntaxes, languages with coverage, commands, panels, recipes) from Orca's live registrations, or from the plugin's own manifest while it's off or awaiting review; a syntax whose grammar failed says so. Commands include with platform-correct shortcut keys and a "Change in Shortcuts" link when a shortcut is shadowed;
    • what it can access;
    • logs, if it has a worker;
    • the catalog's release notes under "What's new", shown as plain text and never as markup;
    • an Info column with version, latest version, the version a rollback would restore, release date, required Orca version, license, categories, plugin ID, content hash, and repository and homepage links (https only).
    • Back, Alt+← or ⌘[ on Mac returns to the list and puts focus back on that row.
  • Needs newer Orca. Catalog plugins that need a newer Orca say so, and their Install button is disabled.
  • Installing from the catalog now reviews only the access the plugin asks for, because its page already showed what it adds.
  • Roll back appears in the ⋯ menu only when an earlier version is kept, and it names that version ("Roll back to 1.1.0…"). The version is asked for when the menu or page opens, so building the list reads no extra files.
  • Enabling a plugin that was never approved opens its review instead of leaving the row at "Needs review". Closing a review never approves a plugin.
  • Plugins off. The page explains that plugins are off, offers "Turn on plugins", and shows the installed list dimmed and inert ("N paused"); nothing on it can be changed until plugins are on.
  • Catalog failures are reported inside the affected group: "Couldn't load this catalog" with Retry, or "Showing the copy from {time}". If the catalog fails, the installed list still shows.
  • Add plugin ▾ in the header now holds "From a folder…", "From a Git URL…" and "Catalog sources…".

Mechanism

  • Three refactors come first, each in its own commit, with no visual change:
    • status presentation (plugin-status-presentation.ts);
    • a merged list model with search (plugin-list-entries.ts);
    • catalog loading moved into a hook (use-plugin-catalog.ts).
  • The old PluginSettingsRow, PluginMarketplaceBrowser and PluginMarketplaceListingRow are replaced by:
    • PluginListRow and PluginListGroup (in plugin-catalog/);
    • PluginManager, PluginManagerRows, PluginCatalogGroups and PluginDetailPage with its sections;
    • PluginUpdateAllDialog, PluginFilterPopover and PluginAddMenu.
  • Each row's name is a real button whose click area stretches over the whole row. The other controls sit above it, so each control is a separate tab stop and screen readers hear "name, publisher, status".
  • Keyboard focus on a row uses the same selection surface as the jump palette, in light and dark, through a selector added to the existing jump-palette rule in main.css. The dark treatment is therefore the quieter accent fill, not a full grey.
  • Narrow layouts use container queries on the list rather than viewport breakpoints. The publisher hides, status becomes a dot with the word kept for screen readers, descriptions wrap to two lines, and search gets its own row.
  • An installed plugin is joined to the catalog it was installed from (same URL and branch). Only that catalog can offer its update, and only when this Orca can run it; another catalog's listing is shown for information only.
  • If Orca can't read a plugin, its page says it couldn't read what the plugin can access, with Retry. It never shows "Nothing outside its own files" for an unread plugin.
  • Catalog names and versions come from the listing's own release fields, with the older raw release record as a fallback. Catalogs that carry neither still work and show a name derived from the plugin ID.
  • The Dev, Bundled and Unverified chips reuse the existing hostContext badge.
  • All new strings are translated into es, fr, ja, ko and zh. Plugin language packs can't override them unless they are added to the allowlist, so security copy can't be rewritten by a plugin.

Why

  • Two lists made the same plugin show up twice with different controls. One model (installed first, then deduplicated catalog entries) removes that whole class of bug and makes search and filter one code path.
  • Fixed slots. Fixed slots make the list scannable and keep controls from moving when state changes. We considered putting buttons inline wherever there was room, and rejected it because controls moved between rows.
  • A page instead of a dialog. The page has room for what a plugin adds and what it can access before you commit, and it can be linked to by keyboard focus.
    • We kept the install review, but it covers only access. That is the one decision the user hasn't already seen.
  • Update all. A single review for Update all is safer than several prompts in a row. People stop reading repeated prompts, and the access deltas are what matter.

Linked Issue

Fixes #

Visual Proof

Spec vs build, side by side, captured from a hidden dev window (isolated profile).

browse-1280-light (spec left, build right)

browse-1280-light.png

browse-1280-dark (spec left, build right)

browse-1280-dark.png

browse-900-light (spec left, build right)

browse-900-light.png

installed-1280-dark (spec left, build right)

installed-1280-dark.png

no-results-1280-dark (spec left, build right)

no-results-1280-dark.png

menus-filter-1280-dark (spec left, build right)

menus-filter-1280-dark.png

focus-1280-light (spec left, build right)

focus-1280-light.png

detail-installed-1280-light (spec left, build right)

detail-installed-1280-light.png

detail-installed-1280-dark (spec left, build right)

detail-installed-1280-dark.png

detail-available-1280-light (spec left, build right)

detail-available-1280-light.png

detail-900-dark (spec left, build right)

detail-900-dark.png

plugins-off-1280-light (spec left, build right)

plugins-off-1280-light.png

plugins-off-1280-dark (spec left, build right)

plugins-off-1280-dark.png

Testing

  • pnpm tc:web passes. The changed-code quality gate passes (design system, React Doctor, casting), oxlint passes, and the localization catalog verifies.

  • New and updated unit tests (1,605 tests across settings and the plugin list):

    • status presentation;
    • list entries, merging and search;
    • list filter;
    • Update all access deltas;
    • PluginManager: one row per plugin, the Show-more cap, the update action and Updates count, the installed list surviving a catalog failure, page open/back with focus returning to the row, and the no-results state;
    • the plugin page's release notes (as text), license and rollback version;
    • the lifecycle suite for plugin settings, including rollback only when a version is kept and review on enabling an unapproved plugin.
  • Full renderer suite: 5 unrelated tests failed under load (native chat, sidebar order, terminal snapshot, syntax tokenizer). Each one passes when run alone.

  • Checked by hand in a background Orca dev build on macOS using CDP screenshots, light and dark, at 1280 and 900, with keyboard-only navigation of the list and plugin page. Not checked by hand on Linux or Windows. The shortcut labels come from the existing platform formatter.

  • I manually tested these changes locally

  • Automated tests added/updated

Review

Known data limits. These come from the backend, not this PR.

  • Older catalog entries carry no release details. For those, names are derived from the plugin ID, and there are no update, minimum-Orca, release-notes or license signals.
  • Older remote hosts send no catalog branch for installed plugins; for those the catalog join falls back to URL only.

Deviations from the spec

  • Dark keyboard focus uses the jump-palette accent fill exactly.
  • Extra-small buttons stay 24px rather than 28px, to keep the primitive unchanged.
  • The checkbox primitive now uses the input border token, so empty checkboxes are visible in dark mode everywhere (light mode is unchanged).

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

  • Restacked onto the schema PR (feat(plugins): one documented schema for manifests and catalogs, with actionable errors #31087).

  • The page reads releases through listing.release, which is now the newest release this Orca can install. The "Needs Orca X" check uses the same plugin host version main gates on (pluginHostVersion), so development and local builds no longer show "Needs Orca" for plugins they would install.

  • SSH: no change. Plugins run on this computer, and the page already says so.

  • Cross-platform: the back shortcut is Alt+← everywhere and also ⌘[ on Mac. Shortcut keys are rendered through the platform formatter.

  • Performance: groups are capped at 6 rows until expanded. Catalog previews are cached per source, plugin and commit.

  • Backwards compatibility: every catalog and manifest field used here is optional, and each has a fallback.

Checklist

  • This PR is small and focused
  • 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
  • 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 (or CI will cover; local preferred)

@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch 2 times, most recently from 31f4c21 to f83b108 Compare October 21, 2026 00:31
@nwparker
nwparker force-pushed the nwparker/plugins-v2-11-schema branch from 85b137d to a661c47 Compare October 21, 2026 06:49
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch from f83b108 to 9ac8391 Compare October 21, 2026 06:51
@nwparker
nwparker force-pushed the nwparker/plugins-v2-11-schema branch from a661c47 to 1bd0a98 Compare October 21, 2026 12:23
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch from 9ac8391 to 63aee33 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-11-schema branch from 1bd0a98 to cc7d729 Compare October 21, 2026 20:12
@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-11-schema branch from cc7d729 to d69e1ec Compare October 24, 2026 11:44
@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-11-schema branch from d69e1ec to 121efa3 Compare October 24, 2026 13:32
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch 2 times, most recently from 5941b71 to d09bad7 Compare October 25, 2026 05:23
@nwparker
nwparker force-pushed the nwparker/plugins-v2-11-schema branch from 470e2bc to 9dcc0f3 Compare October 26, 2026 08:16
@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-11-schema branch from 9dcc0f3 to b90ee35 Compare October 26, 2026 12:04
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch 2 times, most recently from 9de70e4 to 430af60 Compare October 26, 2026 12:32
@nwparker
nwparker force-pushed the nwparker/plugins-v2-11-schema branch 2 times, most recently from 05de5c3 to 4ff3532 Compare October 28, 2026 04:58
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch from 430af60 to 610baec Compare October 28, 2026 04:58
@nwparker
nwparker force-pushed the nwparker/plugins-v2-11-schema branch from 4ff3532 to 58634a7 Compare October 28, 2026 05:31
@nwparker
nwparker force-pushed the nwparker/plugins-v2-12-plugin-list branch from 610baec to 03bfa24 Compare October 28, 2026 05:31
Pull the status ranking, label and enabled/needs-review checks out of the settings row so the
coming list rows and detail page read the same words. No visual change.
PluginListEntry joins an installed plugin to its catalog listing (or stands for a listing alone),
and matchesPluginSearch is the one search both lists use. No visual change.
Sources, listings, refresh, the install/update preview and the outside preview request move out
of PluginMarketplaceBrowser into one hook the coming list and detail page share. The browser
keeps only its view state. No visual change.
…states

- Installed plugins first, then one group per catalog (verified/unverified · owner or URL), capped
  at 6 rows with Show N more; every plugin appears once
- Rows: the name opens the plugin page and covers the row; status, action, switch and ⋯ are
  fixed-width sibling slots in Tab order. Update {version} is the action when a catalog has a newer
  release; Stopped offers Restart with a red mark on the switch; Blocked offers Remove…
- Plugin page in the same pane: what it adds (commands with platform shortcut chips, panels,
  recipes, contribution summary), what it can access, logs, and info. Back link, Alt+← or ⌘[
  return focus to the row
- States inside the list: skeletons, a catalog that fails only affects its own group, no results
  with Clear search, nothing installed. Plugins off keeps the installed list visible, dimmed
- Add plugin ▾ (folder, Git URL) replaces Install plugin; Plugin system stays at the top
- Catalog listings now expose their release (name, version, minimum Orca, types) to the renderer
…eeds newer Orca

- Filter popover (category, catalog) next to search; search and filters show every match
- Update all opens one review: updates that ask for new access are expanded with what's new, the
  rest are one line, any can be unticked; installs run one at a time
- A catalog release that needs a newer Orca says so and disables Install, in the row and the page
- Installing from a plugin page shows a review with only access and source, since the page just
  showed what it adds
Plugin page owns the pane (back link and plugin header only); Adds to Orca names
every contribution; access never reads as 'nothing' when the check failed; filter
kinds have readable names; Update all is reachable, fetches once per open and
routes updates needing review; installed plugins join their own catalog;
attention-first order; paused list while plugins are off.
Main gates plugins on pluginHostVersion, the newer of the app version and the
newest since-version the build reads. The plugin page compared releases to the
raw app version, so a development or local build showed Needs Orca for plugins
it would install.
The page offers "Turn on plugins" while the system is off, catalog rows share
the installed rows' data-plugin-key, the review action is "Review", and an
enabled plugin reads "On".
…rom "no worker"

A commands-and-shortcuts plugin's page said "Content only. It has no code that runs."
because the page treated "no worker" as "no code". A worker plugin without capabilities
read "runs in a sandbox". The page now classifies from the catalog release's execution
profile (install refuses bytes whose manifest differs), the fetched manifest, or the
installed manifest's profile from the plugin list's `execution` field. Unknown stays
"Reading…" or "Couldn't read", never content only. The review dialog uses the same
profile, and an older host that omits it is reviewed as instructional.
@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-11-schema branch from 58634a7 to 56640be 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