Skip to content

Plugins cannot expose settings to the user: settings:own is a private KV store with no schema, no host UI, and no panel access #15655

Description

@YoraiLevi

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.

  1. Make settings.get/settings.set panel-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 the panel flag in the spec table, plus whatever the capability gate needs.
  2. A contributes.settings JSON-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.
  3. 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

  1. added
    bug
    on Sep 19, 2026
  2. added theissue type on Sep 19, 2026
  3. nwparker commented on Dec 1, 2026

    @nwparker
    Contributor

    Implemented in PR #37013 (commit ec0d3cedd12d). Plugins can now declare typed contributes.settings schemas (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 via settings APIs (src/shared/plugins/declarative/runtime/declarative-data-sdk.ts, src/shared/plugins/frames/plugin-panel-shell-facades.ts).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions