Repository navigation
Conversation
nwparker
force-pushed
the
nwparker/plugins-v2-6-settings-ux
branch
from
October 19, 2026 21:42
cbe1dea to
42f40c5
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-5-icon-themes
branch
2 times, most recently
from
October 21, 2026 06:32
c5c5ba8 to
059672d
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-6-settings-ux
branch
from
October 21, 2026 06:51
42f40c5 to
111ab32
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-5-icon-themes
branch
from
October 21, 2026 12:23
059672d to
796fc9a
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-6-settings-ux
branch
from
October 21, 2026 12:23
111ab32 to
b04942d
Compare
nwparker
marked this pull request as ready for review
October 21, 2026 12:24
nwparker
force-pushed
the
nwparker/plugins-v2-5-icon-themes
branch
from
October 21, 2026 20:09
796fc9a to
33aa2d0
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-6-settings-ux
branch
from
October 21, 2026 20:10
b04942d to
c50d65b
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-5-icon-themes
branch
from
October 24, 2026 11:43
33aa2d0 to
de95f9d
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-6-settings-ux
branch
2 times, most recently
from
October 25, 2026 05:23
9e95019 to
7452b90
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-5-icon-themes
branch
from
October 25, 2026 05:23
de95f9d to
0c09906
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-6-settings-ux
branch
from
October 26, 2026 12:04
7452b90 to
eb24515
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-5-icon-themes
branch
2 times, most recently
from
October 26, 2026 12:32
afce228 to
3157f58
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-6-settings-ux
branch
from
October 26, 2026 12:32
eb24515 to
0d68d0b
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-5-icon-themes
branch
from
October 28, 2026 04:57
3157f58 to
a64d875
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-6-settings-ux
branch
from
October 28, 2026 04:57
0d68d0b to
e835a1e
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-5-icon-themes
branch
from
October 28, 2026 05:30
a64d875 to
f1ac3ec
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-6-settings-ux
branch
from
October 28, 2026 05:30
e835a1e to
086c8f0
Compare
…owlist and size cap Plugin and marketplace sources were a real clone/checkout, so user hooks, smudge filters and core.hooksPath ran, insteadOf rules could reach any transport, and nothing bounded the download. Now a --no-checkout depth-1 clone (or exact-commit fetch) runs with an empty hooks path, only the https and ssh transports, and Orca writes the commit's exact blobs from ls-tree + cat-file --batch. Symlinks, submodules, .git aliases, colliding portable paths and SHA-256 repositories are refused. A size watcher stops the whole Git process tree once the pack outgrows an approximate cap. The exact argv lives in shared code and joins the real-Git compatibility matrix, so the Git 2.25 lane runs it. Tests reach fixtures over an SSH shim, since file transports are now refused.
data < instructional < sandboxed-ui < trusted-worker. A v2 manifest is strict and fails when it carries contributions beyond its profile; v1 manifests keep loading with the least profile inferred from what they declare.
A v2 catalog entry carries the release it vouches for: commit, content hash, version, profile, minimum Orca and contribution types. Preview and install fetch that commit directly and refuse bytes that differ. The v1 file stays strict and frozen for shipped clients; v2 entries strip unknown keys, and entries this client cannot install are dropped at parse time. Catalog fetches read only the index blobs under their own download cap, so a catalog repository is not held to one plugin's limits. Release-bearing snapshots are cached under a new key, so an older build never reads them and simply refetches. readMarketplaceJson and parseMarketplaceFile from #30612 are replaced by parsePluginMarketplaceIndex: catalogs are now read as Git blobs, so the on-disk JSON read has no caller left.
Plugin downloads now refuse the file transport, even through an insteadOf rewrite, so the fresh-profile marketplace journey reaches its fixture repositories through the GIT_SSH_COMMAND shim the unit tests use.
Consent for any plugin that runs code (a v2 sandboxed-ui or trusted-worker profile, or a v1 manifest with a worker or panel) now names its installed content hash, so an update cannot swap code under an old approval. Shipped v1 installs re-prompt once. Data packs keep their fingerprints, and dev trees stay unbound so a save doesn't re-prompt. The re-review notice is one short line.
The content verifier cached its first check, so bytes swapped between a crash and its restart still ran. The controller now hands the manager one uncached verifyBeforeSpawn hook that runs before every spawn, including crash restarts, and replaces the cached first-start check, so nothing is hashed twice and a running worker is reused without hashing. It is an integrity check, not a sandbox: Node still reads files after it. Approval is re-asserted at the same points, so a revoked plugin stops restarting instead of counting as a crash, and cancellation does not wait on a hash.
A refresh that changes a running worker's spec used to stop it and wait for the next command or event. Reconcile now restarts it once on the new spec after every stop, through the same approval and integrity path, and skips the restart if a newer reconcile or dispose has taken over. Idle workers stay lazy.
Approval of worker and panel plugins now names their exact bytes, so switching the demo plugin from its installed copy to the dev folder asks for review again; the journey approves the dev copy before using it.
Manifests can contribute themes (public CSS tokens over a light or dark base) and terminal themes (an ANSI palette), each at most 16 KiB. App themes must set --background and --foreground; omitted tokens are derived from them (surfaces copy the background, muted text, borders and accents mix the foreground into it), and values must be colors (no keywords, lengths, calc, var or url). Both load through the shared artifact-pack registry with the plugin's display name and a content revision, reach the renderer over IPC and are re-validated there. Catalog releases can declare app-theme and terminal-theme, and marketplaces stop hiding theme listings. docs/reference/plugin-themes.md documents the format.
Selecting a plugin terminal theme saves a copy of its palette in settings (terminalPluginPalettes). The shared lookup reads it, so main, headless serve and relays answer terminal color queries and native chat matches the terminal without the plugin loaded; a malformed snapshot falls back to the default theme.
Appearance keeps the System/Dark/Light control until a plugin offers a theme; then Theme becomes one list with plugin themes after a divider, labelled with the publisher when names collide. Choosing one stores its base in theme and remembers the earlier built-in choice, which comes back while the plugin is off or after it is uninstalled; a plugin update that changes the base re-syncs theme. It also offers the plugin's terminal colors in one click. The renderer paints only values CSS parses as colors, checks every text/surface pair, ring and border against the effective set (plugin values over this mode's built-ins) and repeats until nothing changes, so dropping one pair cannot expose another. The applied theme is cached with its id and revision, painted before first render, and dropped as soon as settings show it no longer applies. Main bounds the new settings on every write and load, and uninstalling a plugin clears its theme choices and palette copies. Terminal themes appear under Plugins in the picker with the plugin's name and are passed to lookups instead of read from a store.
…its normalization
An icon theme maps the file, folder and folder-open slots plus exact file names and extensions to SVGs. Listing reads only the mapping. A theme's SVGs are read only when it is selected, once per distinct file, under per-icon, per-theme and icon-count caps, and are sent as text with index maps so the renderer sanitizes and registers each icon once. Catalog releases can declare icon-theme, and marketplaces stop hiding icon packs.
Appearance gains an Icon theme row while an enabled plugin offers one. The renderer parses each SVG with the browser's XML parser and keeps only allowlisted SVG elements and un-namespaced attributes; url() may name only a fragment in the same icon, so gradients, clip paths and masks work. Each icon becomes one blob URL and one CSS rule keyed by its index, so rows carry a small attribute instead of the image. Icons drawn only in currentColor render as masks that follow the text color. FileTypeIcon and the explorer's folders fall back to the built-in icons when the plugin is disabled, a path has no mapping, or an SVG is rejected. Uninstalling the plugin clears the setting.
Icon theme file names and extensions such as constructor no longer resolve to inherited Object.prototype members, and registered icon indexes must point at a real SVG.
The pack translated 22 of about 16,000 strings, so choosing it changed almost nothing. The marketplace e2e now installs a generated pack built from the English catalog instead.
Main measures each pack against the translatable English strings when it loads (the English catalog is imported lazily, only then). Packs under 80% stay installed and their plugin card shows how much they translate, but neither the Language picker nor the main process switches to them. The catalog entry cap rises to 50,000 because a complete pack is already close to the old 20,000.
Plugin settings, dialogs and errors now say what a thing is in one short line instead of explaining how it works. Security warnings keep their risk statement in one sentence. The plugin-system toggle stands alone when the system is off. The style guide records the standard, and translations are updated.
Consent and marketplace preview dialogs are 2xl wide with one column: header with provenance, then the warning, permissions, shortcuts, VM commands and, for updates, what changed, separated by rules instead of nested cards. Only the body scrolls, so the decision buttons stay in view. Install is xl; remove and rollback are compact confirmations.
nwparker
force-pushed
the
nwparker/plugins-v2-5-icon-themes
branch
from
October 28, 2026 10:53
f1ac3ec to
59c239f
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-6-settings-ux
branch
from
October 28, 2026 10:53
086c8f0 to
26d649b
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-5-icon-themes
branch
from
October 28, 2026 22:14
59c239f to
6bc70e5
Compare
Contributor
Author
|
Folded into #35470 (Plugin Alpha), which lands the rest of the plugin stack in one PR. |
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.
ELI5
The plugin settings were wordy, the review dialogs were narrow and cramped, and Orca offered a "Português do Brasil" language that translated almost nothing. Now each setting has one short line, review dialogs are wide and read top to bottom, and a language only appears in the Language menu once it translates most of Orca.
What Changed
Before:
After:
sm:max-w-2xl) and single column. They run: header with provenance, then the warning, permissions, keyboard shortcuts, VM commands, and "What changed" for updates.sm:max-w-xl. Remove and rollback are compact confirmations.How it works:
resources/plugins/launch/): the Portuguese entry and its directory are deleted. The marketplace e2e now builds a complete test language pack from the English catalog (tests/e2e/helpers/plugin-language-pack-fixture.ts).src/shared/plugins/plugin-language-pack-coverage.ts,src/main/plugins/plugin-language-pack-registry.ts):coverage.usePluginLanguagePacks, the macOS notice hooks and the main-process menus use only packs at or above the floor.docs/STYLEGUIDE.md): a "Settings subtext" rule (one line, aim for 80 characters, say what it is, no mechanics or reassurance outside security copy). All five shipped translations are updated.plugin-review-dialog-layout.tsx,PluginConsentDialog.tsx,PluginMarketplacePreviewDialog.tsx, the keyboard-shortcut and VM-recipe previews):DialogContentuses a three-row grid.PluginReviewBodyis the scrolling middle row, andPluginReviewSectionis a headed block divided by rules.Why
Linked Issue
None. This is part of the plugin platform rework (maintainer change).
Visual Proof
Screenshots from a hidden dev window (
ORCA_BACKGROUND_LAUNCH=1, isolated profile, mock keychain), captured over CDP. A local copy of the old Portuguese pack is installed so its coverage shows.Testing
Unit tests:
plugin-language-pack-coverage.test.ts).plugin-language-pack-registry.test.ts).plugin-language-packs-startup.test.ts).PluginSettingsRow.test.tsx).PluginConsentDialog.test.tsx).Local suites: 15,721 tests in the plugin, shared, i18n, startup, store, hooks, settings, editor, native-chat and UI suites pass.
tc:node,tc:web, oxlint,check:code-quality:changed, localization catalog and coverage checks are clean.End-to-end: the plugin e2e specs (demo, marketplace content with the generated language pack, panel containment ×2, startup budget) pass locally, run in the background.
Platforms: macOS locally. This draft skips most CI jobs, so Linux and Windows aren't covered yet.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Review
Agent skill upstream boundary
Notes
coverageis a new field on a registration that only crosses IPC within one app version, so there is no wire-compatibility concern. Settings are unchanged.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred). Targeted suites,tc:node,tc:web, oxlint, the change-quality gate, localization checks and plugin e2e pass locally; fullpnpm lintnot run.