Repository navigation
Description
Summary
A plugin has no supported way to expose user-configurable settings. settings:own grants a private key-value file, not a settings surface: there is no manifest contribution point, no schema, and no host-rendered form. A user who installs a plugin cannot configure it from ORCA at all.
What I expected
That settings:own — consent copy "Read and change the plugin's own settings" (src/shared/plugins/plugin-capabilities.ts:43) — would pair with some way for the user to see and change those settings.
What actually exists
1. No settings key in contributes, and the object is strict.
src/shared/plugins/plugin-manifest.ts:99-120 — the seven permitted keys are panels, commands, events, languagePacks, keybindings, vmRecipes, agents, followed by .strict(). A manifest that declares a settings schema fails validation.
2. The settings API is an untyped Record<string, JSON>.
src/shared/plugins/plugin-host-api.ts:88-91:
const settingsGetParams = z.object({}).strict().optional()
const settingsGetResult = z.object({ settings: z.record(z.string(), pluginJsonValueSchema) })
const settingsSetParams = z.object({ key: storageKeySchema, value: pluginJsonValueSchema })
const settingsSetResult = z.object({ ok: z.literal(true) })No schema, type, label, control hint, or default — nothing a form could be generated from.
3. The implementation is a second storage.
src/main/plugins/plugin-host-service-bindings.ts:79-82 uses PluginKvStore(pluginsDataDir, key, 'settings.json') — identical machinery to storage, differing only in filename and capability name.
4. The renderer has no plugin-settings form.
src/renderer/src/components/settings/ contains 28 plugin files, all lifecycle: consent, install, marketplace, remove, rollback, overview. PluginSettingsRow.tsx (334 lines) renders a status badge, an enable switch, and a dropdown of Review / Logs / Rollback / Remove (props at :31-41). There is no per-plugin settings pane, no schema renderer, and no "Configure" action.
5. A panel cannot render its own form either.
settings.get and settings.set are both panel: false (plugin-host-api.ts:229, :239), so a sandboxed panel cannot read the plugin's own settings to display them, nor write a change back. The worker can, but the worker has no UI.
Why this matters
The net effect is that a plugin's settings are writable only by code the user cannot reach. For our plugin — a text-to-speech tool whose entire value is per-user tuning of voice, speed, and how text is spoken — every one of those choices is a user preference, and none of them can be surfaced through ORCA. We are building a separate local web UI purely to work around this, which means settings live outside the app the user installed the plugin into.
Possible directions
Any one of these would be sufficient; they are listed cheapest first.
- Make
settings.get/settings.setpanel-callable. Smallest change. A plugin then renders its own form inside its panel, and the host stays out of schema design entirely. This is a one-line-per-method change to thepanelflag in the spec table, plus whatever the capability gate needs. - A
contributes.settingsJSON-Schema block that the host renders into the existing plugin settings row as a "Configure" action. More work, but it gives every plugin a consistent, accessible, themed form for free. - A documented statement that plugin settings are the plugin's own problem, so implementers stop looking for the contribution point. Even this is an improvement over the current state, where the capability name implies a surface that does not exist.
Option 1 also resolves the sibling request in #15643, which asks for panel-callable storage.get for the same underlying reason: a panel is the only place a plugin can draw, and it cannot read the state it needs to draw.
Environment
Read at 0f26ff4ad83e9ca736f6ad3bae6937cd0cdab7fc. Every citation above is from that commit.
Activity
nwparker commentedon Dec 1, 2026
Implemented in PR #37013 (commit
ec0d3cedd12d). Plugins can now declare typedcontributes.settingsschemas (src/shared/plugins/contributions/plugin-settings-contribution.ts,src/main/plugins/storage/plugin-declared-settings.ts), which Orca renders as controls in Settings (src/renderer/src/components/plugins/page/PluginSettingsSection.tsx) and exposes to panels and editors viasettingsAPIs (src/shared/plugins/declarative/runtime/declarative-data-sdk.ts,src/shared/plugins/frames/plugin-panel-shell-facades.ts).