Repository navigation
feat: add Control UI plugin management - #103176
Conversation
Adds a plugins.uninstall gateway method (operator.admin, control-plane write) backed by a lock-guarded uninstallManagedPlugin that mirrors the CLI flow: config cleanup, install-record removal, managed file deletion, and registry refresh. Bundled plugins stay disable-only. Catalog entries now carry a manifest-derived category and a removable flag; ClawHub search results expose download counts and verification tiers.
…ver art Rebuilds /settings/plugins around three tabs: Installed (category-grouped inventory with overview stats, state filters, uninstall for external plugins, and inline MCP server management through the shared config seam), Discover (featured/official shelves plus one-click MCP connectors and curated ClawHub searches), and ClawHub (search with download counts and verification badges). Every catalog entry renders bundled cover art or a deterministic gradient monogram tile - no more empty boxes. Artwork generated with Codex CLI, shipped as 512px WebP under ui/public/plugin-art.
listManagedPlugins now prefers manifest names over registry package-name backfill, falls back to channel catalog labels and blurbs, and stops pinning expectedPluginId when a hosted feed entry only exposes its package name (which rejected every legitimate install of that package). Found via live gateway testing against ClawHub.
config.patch merges rather than replaces, so key removal needs an explicit null; sending the full config back made MCP server removal a no-op. Found via live gateway testing.
The MCP runtime defaults URL-only servers to SSE, so streamable HTTP endpoints saved by the add form or connector templates would fail at connect time. Connector templates now declare their transport and the add form infers streamable-http unless the URL follows the /sse convention. Flagged by autoreview against the transport resolver.
Reworks the plugins page from PR #103176 feedback: merges the ClawHub tab into Discover (typing searches ClawHub inline and appends a quiet From ClawHub section, with Browse ClawHub demoted to a header text link), makes every row and store card open a plugin detail overlay (hero art, primary enable/install action, metadata table), and replaces enable/disable switches with a state chip plus an overflow menu (Enable/Disable, Remove for external plugins, View details) matching the ChatGPT-store install+menu pattern. MCP rows use the same menu; refresh is now icon-only.
Expands Connect your world to 28 connectors organized into use-case shelves (Work & productivity, Coding & infrastructure, Home & media, Everyday life). Every entry passed a three-stage subagent review: official-docs verification plus live endpoint probes for MCP servers, ClawHub result-quality and malware/typosquat screening for curated searches, and an adversarial pass that dynamically registered OAuth clients to prove one-click viability. That review removed Figma (registration allowlisted, 403) and Atlassian (OAuth issuer-mismatch bug upstream), downgraded GitHub to PAT-based setup (no dynamic client registration upstream), fixed Linear (/sse retired) and Home Assistant (/api/mcp, streamable HTTP) endpoints, retargeted poisoned or dead searches (youtube, finance, hue dropped; calendar -> google calendar; stocks replaces finance), and added Todoist, Airtable, Canva, Stripe, Context7, DeepWiki, Hugging Face one-click MCP servers plus Jira, PDF, transcription, Kubernetes, Reddit, maps, translation, and notes searches. Keyless servers get a ready-to-use success message; new cover art included.
# Conflicts: # docs/web/control-ui.md # ui/src/i18n/.i18n/ar.meta.json # ui/src/i18n/.i18n/de.meta.json # ui/src/i18n/.i18n/es.meta.json # ui/src/i18n/.i18n/fa.meta.json # ui/src/i18n/.i18n/fr.meta.json # ui/src/i18n/.i18n/hi.meta.json # ui/src/i18n/.i18n/id.meta.json # ui/src/i18n/.i18n/it.meta.json # ui/src/i18n/.i18n/ja-JP.meta.json # ui/src/i18n/.i18n/ko.meta.json # ui/src/i18n/.i18n/nl.meta.json # ui/src/i18n/.i18n/pl.meta.json # ui/src/i18n/.i18n/pt-BR.meta.json # ui/src/i18n/.i18n/ru.meta.json # ui/src/i18n/.i18n/th.meta.json # ui/src/i18n/.i18n/tr.meta.json # ui/src/i18n/.i18n/uk.meta.json # ui/src/i18n/.i18n/vi.meta.json # ui/src/i18n/.i18n/zh-CN.meta.json # ui/src/i18n/.i18n/zh-TW.meta.json
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 53f9c0ed26
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (clawhub && !clawhub.version) { | ||
| return { source: "clawhub", packageName: clawhub.name }; |
There was a problem hiding this comment.
Honor official install default choices
When an official catalog row has both clawhubSpec and npmSpec but declares defaultChoice: "npm" (for example scripts/lib/official-external-plugin-catalog.json:126-130), this branch still exposes a direct ClawHub install action; the later official-install path also picks ClawHub whenever it exists. In fallback/offline catalogs, or any curated row intentionally preferring npm, the Control UI downloads from ClawHub instead of the supported npm path, which can fail or bypass the same defaultChoice contract that onboarding/doctor installers honor.
Useful? React with 👍 / 👎.
# Conflicts: # CHANGELOG.md
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d41d33b57f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| public let state: AnyCodable | ||
| public let featured: Bool? | ||
| public let order: Double? | ||
| public let install: PluginCatalogInstallAction? |
There was a problem hiding this comment.
Generate the missing plugin install action model
When the shared Swift protocol models are compiled after this change, PluginCatalogEntry now references PluginCatalogInstallAction, but apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift does not define that type anywhere (rg only finds this property and the initializer parameter). Any iOS/macOS target that builds OpenClawProtocol will fail before it can use the new plugin catalog models; either emit a Codable union/model for PluginCatalogInstallActionSchema or make this field use an existing generated type such as AnyCodable.
Useful? React with 👍 / 👎.
# Conflicts: # ui/src/app-navigation.test.ts # ui/src/i18n/.i18n/ar.meta.json # ui/src/i18n/.i18n/de.meta.json # ui/src/i18n/.i18n/es.meta.json # ui/src/i18n/.i18n/fa.meta.json # ui/src/i18n/.i18n/fr.meta.json # ui/src/i18n/.i18n/hi.meta.json # ui/src/i18n/.i18n/id.meta.json # ui/src/i18n/.i18n/it.meta.json # ui/src/i18n/.i18n/ja-JP.meta.json # ui/src/i18n/.i18n/ko.meta.json # ui/src/i18n/.i18n/nl.meta.json # ui/src/i18n/.i18n/pl.meta.json # ui/src/i18n/.i18n/pt-BR.meta.json # ui/src/i18n/.i18n/ru.meta.json # ui/src/i18n/.i18n/th.meta.json # ui/src/i18n/.i18n/tr.meta.json # ui/src/i18n/.i18n/uk.meta.json # ui/src/i18n/.i18n/vi.meta.json # ui/src/i18n/.i18n/zh-CN.meta.json # ui/src/i18n/.i18n/zh-TW.meta.json # ui/src/i18n/locales/ar.ts # ui/src/i18n/locales/de.ts # ui/src/i18n/locales/en.ts # ui/src/i18n/locales/es.ts # ui/src/i18n/locales/fa.ts # ui/src/i18n/locales/fr.ts # ui/src/i18n/locales/hi.ts # ui/src/i18n/locales/id.ts # ui/src/i18n/locales/it.ts # ui/src/i18n/locales/ja-JP.ts # ui/src/i18n/locales/ko.ts # ui/src/i18n/locales/nl.ts # ui/src/i18n/locales/pl.ts # ui/src/i18n/locales/pt-BR.ts # ui/src/i18n/locales/ru.ts # ui/src/i18n/locales/th.ts # ui/src/i18n/locales/tr.ts # ui/src/i18n/locales/uk.ts # ui/src/i18n/locales/vi.ts # ui/src/i18n/locales/zh-CN.ts # ui/src/i18n/locales/zh-TW.ts
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ab02734dcd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const install = resolveOfficialExternalPluginInstall(entry, { | ||
| catalogConfig: params.snapshot.config.marketplaces, | ||
| }); |
There was a problem hiding this comment.
Preserve custom marketplace source profiles during install
When a configured marketplace feed selects a candidate through a non-default source profile, this call can resolve that candidate using catalogConfig, but only the bare clawhubSpec/npmSpec is used by the install calls below. For entries whose sourceRef points at a custom ClawHub baseUrl or npm registry, Control UI installs will fetch the same package name from the default public source instead of the configured marketplace, so private or mirrored catalog entries fail or install the wrong artifact.
Useful? React with 👍 / 👎.
… new protocol surface
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d26c97e4f2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| return; | ||
| } | ||
| const trust = readPluginInstallTrustError(error); | ||
| const packageName = request.source === "clawhub" ? request.packageName : null; |
There was a problem hiding this comment.
Keep risk acknowledgement available for official ClawHub installs
When the catalog exposes a ClawHub-backed entry as source: "official"—which happens for version-pinned hosted candidates from resolveCatalogInstallAction, and installFromOfficialCatalog then calls the ClawHub installer—the gateway can still return clawhub_risk_acknowledgement_required for non-default/private/non-clean ClawHub releases. This branch discards the package name for non-clawhub requests, so the UI falls through to a plain error instead of rendering the acknowledgement retry, leaving that install unrecoverable from the Plugins page even though the server sent trust details.
Useful? React with 👍 / 👎.
* feat(ui): add plugin catalog management * feat(gateway): add plugins.uninstall and richer plugin catalog metadata Adds a plugins.uninstall gateway method (operator.admin, control-plane write) backed by a lock-guarded uninstallManagedPlugin that mirrors the CLI flow: config cleanup, install-record removal, managed file deletion, and registry refresh. Bundled plugins stay disable-only. Catalog entries now carry a manifest-derived category and a removable flag; ClawHub search results expose download counts and verification tiers. * feat(ui): redesign plugins page with inventory, store shelves, and cover art Rebuilds /settings/plugins around three tabs: Installed (category-grouped inventory with overview stats, state filters, uninstall for external plugins, and inline MCP server management through the shared config seam), Discover (featured/official shelves plus one-click MCP connectors and curated ClawHub searches), and ClawHub (search with download counts and verification badges). Every catalog entry renders bundled cover art or a deterministic gradient monogram tile - no more empty boxes. Artwork generated with Codex CLI, shipped as 512px WebP under ui/public/plugin-art. * chore(ui): regenerate locale bundles for plugins manager strings * docs: describe plugins manager tabs, uninstall, and MCP connectors * fix(plugins): human catalog labels and un-pinned hosted fallback ids listManagedPlugins now prefers manifest names over registry package-name backfill, falls back to channel catalog labels and blurbs, and stops pinning expectedPluginId when a hosted feed entry only exposes its package name (which rejected every legitimate install of that package). Found via live gateway testing against ClawHub. * fix(ui): send minimal RFC 7396 merge patches for MCP server edits config.patch merges rather than replaces, so key removal needs an explicit null; sending the full config back made MCP server removal a no-op. Found via live gateway testing. * fix(ui): write explicit MCP transports for URL servers The MCP runtime defaults URL-only servers to SSE, so streamable HTTP endpoints saved by the add form or connector templates would fail at connect time. Connector templates now declare their transport and the add form infers streamable-http unless the URL follows the /sse convention. Flagged by autoreview against the transport resolver. * test(ui): wait for deferred plugin requests before resolving in e2e * feat(ui): plugins detail view, action menus, and unified ClawHub search Reworks the plugins page from PR openclaw#103176 feedback: merges the ClawHub tab into Discover (typing searches ClawHub inline and appends a quiet From ClawHub section, with Browse ClawHub demoted to a header text link), makes every row and store card open a plugin detail overlay (hero art, primary enable/install action, metadata table), and replaces enable/disable switches with a state chip plus an overflow menu (Enable/Disable, Remove for external plugins, View details) matching the ChatGPT-store install+menu pattern. MCP rows use the same menu; refresh is now icon-only. * chore(ui): regenerate locale bundles for plugins UI iteration * feat(ui): vetted, grouped connector catalog for the plugins store Expands Connect your world to 28 connectors organized into use-case shelves (Work & productivity, Coding & infrastructure, Home & media, Everyday life). Every entry passed a three-stage subagent review: official-docs verification plus live endpoint probes for MCP servers, ClawHub result-quality and malware/typosquat screening for curated searches, and an adversarial pass that dynamically registered OAuth clients to prove one-click viability. That review removed Figma (registration allowlisted, 403) and Atlassian (OAuth issuer-mismatch bug upstream), downgraded GitHub to PAT-based setup (no dynamic client registration upstream), fixed Linear (/sse retired) and Home Assistant (/api/mcp, streamable HTTP) endpoints, retargeted poisoned or dead searches (youtube, finance, hue dropped; calendar -> google calendar; stocks replaces finance), and added Todoist, Airtable, Canva, Stripe, Context7, DeepWiki, Hugging Face one-click MCP servers plus Jira, PDF, transcription, Kubernetes, Reddit, maps, translation, and notes searches. Keyless servers get a ready-to-use success message; new cover art included. * chore(ui): regenerate locale bundles for connector groups * fix(plugins): suppress hosted catalog rows once their package is installed Hosted feed entries without a declared runtime id fall back to their package name as catalog id, which never matches the installed runtime id, so the Discover shelf kept offering an already-installed package. Installed package names now also suppress official rows. Flagged by autoreview. * fix(plugins): pin declared runtime ids and surface connector errors in place The runtime-id pin now keys off explicitly declared catalog ids (plugin, channel, or provider) instead of string-comparing against the package name, so declared ids that equal their package name stay enforced while entry-id fallbacks stay unpinned. Connector add failures on Discover now render on the triggering card instead of the Installed tab's MCP section. Both flagged by autoreview; regression tests included. * feat(ui): full inventory artwork, pulse header, and two-column plugin list Every bundled plugin now ships distinctive cover art (113 new Codex CLI illustrations; 172 total, ~2.1MB WebP), so inventory rows and detail views never fall back to monogram tiles. The four stat cards give way to a compact inventory pulse: a segmented enabled/disabled/issues meter whose legend and counts live inside the filter chips. Inventory, MCP, and search rows flow into two columns when the panel is wide enough. * chore(ui): regenerate locale bundles for pulse header * fix(ui): omit stdio args from the MCP server row target Stdio MCP args routinely carry tokens, and the inventory is visible to read-only operators; mirror the config page and show only the command. Flagged by autoreview; regression test included. * fix(merge): point crestodian setup at relocated plugin commit/refresh modules * fix(merge): add bootstrapToken to plugins page test gateway harness * fix(plugins): name catalog install-action branches so Swift emits the union * fix(ui): satisfy strict lint on plugins page form parsing and mocks * chore(build): regen docs map, raise plugin-sdk declaration budget for new protocol surface * fix(ui): type the plugins page patch mock with its real call signature
Closes #103135
What Problem This Solves
OpenClaw's optional plugins are discoverable and manageable through CLI/config workflows, but the Control UI had no coherent place to see what is installed and running, enable a bundled capability such as Workboard, install or remove a ClawHub plugin, or connect lightweight MCP-based integrations.
Why This Change Was Made
This builds a full plugin manager at
/settings/pluginson top of the existing plugin lifecycle, with two tabs:…) menu offers Enable/Disable, View details, and a confirm-guarded Remove for externally installed plugins. The tab also manages MCP servers inline (list, add via URL or command with inferred transport, enable/disable, remove) through the existingconfig.patchseam using minimal RFC 7396 merge patches; stdio rows show only the command since args can carry credentials.Every catalog entry renders cover art: 172 bundled 512px WebP illustrations (generated with Codex CLI, ~2.1MB under
ui/public/plugin-art/) covering the full bundled inventory, every connector, and the store shelves, with deterministic gradient monogram tiles as the fallback for unknown ClawHub packages. The gateway CSP isimg-src 'self', so artwork ships with the bundle.Connector vetting. Every connector passed a three-stage subagent review: (1) official-docs verification plus live endpoint probes for MCP servers, (2) ClawHub result-quality and malware/typosquat screening for curated searches, and (3) an adversarial pass that dynamically registered OAuth clients to prove one-click viability. That review removed Figma (client-allowlisted registration, live 403) and Atlassian (upstream OAuth issuer-mismatch bug), downgraded GitHub to PAT-based setup (no dynamic client registration upstream), fixed the Linear endpoint (
/sseretired →/mcp) and Home Assistant (/api/mcp, streamable HTTP), and dropped or retargeted searches whose top results were squatted by suspicious packages (a bulk-published wrapper cluster routing queries and API keys to a third-party service now sits on ClawHub's "never highlight" radar; details in the review artifacts).Backend additions (all additive, no protocol version bump):
plugins.uninstall(operator.admin, control-plane write): lock-guarded removal mirroring the CLI flow — config references, install record, managed files, registry refresh. Bundled plugins stay disable-only.PluginCatalogEntrygainscategory(manifest-derived) andremovable; search results gaindownloadsandverificationTier.expectedPluginIdto their package name (which rejected every legitimate install), while explicitly declared ids stay enforced even when they equal the package name; installed packages now also suppress their hosted catalog rows.User Impact
Operator admins get a single place to see what is installed and running, click into any plugin for details, enable/disable/remove via familiar store-style menus, install from the curated store or inline ClawHub search, and wire up vetted MCP connectors without touching JSON. Read-only operators can still browse and search with mutation controls disabled and explained.
Evidence
pnpm tsgo:all,pnpm test:ui(i18n drift gate + 2,693 UI tests across 188 files), focused backend suites (protocol validators, management service incl. uninstall/removable/pin regression tests, gateway handlers, descriptor scopes), and the 3-scenario Chromium E2E all pass on Blacksmith Testbox.pnpm buildpasses including the production Control UI build; protocol schema/Swift generators are deterministic.OPENCLAW_STATE_DIR+ sanitized env, this branch's build): browsed the 141-plugin inventory, installed@openclaw/bluebubblesfrom ClawHub through the UI and removed it via the menu flow, and added/removed MCP connectors with the config file verified after each step.Screenshots (live gateway, this branch)
Installed inventory: pulse header, two columns, full artwork (dark)
Plugin detail overlay
Discover: featured shelf + grouped connectors (full page)
Unified inline ClawHub search
Light theme
Mobile