Repository navigation
Description
Summary
After installing a managed npm plugin (openclaw plugins install npm:@openclaw/llama-cpp-provider@2026.6.10) and enabling it, the gateway stops resolving every workspace plugin configured via plugins.load.paths. Each one is reported at startup as:
plugins.entries.<id>: plugin not found: <id> (stale config entry ignored; remove it from plugins config)
plugins.allow: plugin not found: <id> (stale config entry ignored; remove it from plugins config)
and the gateway comes up without them (in our case 19 plugins → 16: the npm plugin loaded, four workspace plugins dropped). The plugin files are present and unchanged on disk, and the same config loads all of them fine once the npm plugin is disabled again.
Environment
- OpenClaw 2026.6.10 (aa69b12), global npm install, macOS (Apple Silicon), gateway run as a LaunchAgent
- Four local workspace plugins under
~/.openclaw/workspace/plugins/<name>/(each withopenclaw.plugin.json+index.js), registered viaplugins.load.pathsand allowlisted inplugins.allow - Managed plugin installed to
~/.openclaw/npm/projects/openclaw-llama-cpp-provider-<hash>/
Steps to reproduce
- Working 2026.6.10 install with ≥1 workspace plugin registered via
plugins.load.paths, enabled inplugins.entries, listed inplugins.allow. Confirm gateway startup line lists it. openclaw plugins install npm:@openclaw/llama-cpp-provider@2026.6.10- Add
llama-cpptoplugins.allow,openclaw plugins enable llama-cpp - Restart the gateway.
Expected: previous plugins + llama-cpp.
Actual: llama-cpp loads; every plugins.load.paths plugin is dropped with the "stale config entry" warning above.
Additional observations
- The same "plugin not found" warnings appear in CLI context (
openclaw plugins list,openclaw memory ...) with the npm plugin merely installed-but-disabled — so discovery in some contexts already stops seeingload.pathsplugins once an npm plugin project exists on disk. The gateway only regresses once the npm plugin is enabled/restarted. - Reverting the config (disable
llama-cpp, remove from allow) and restarting fully restores the workspace plugins. Deterministic both directions. - Searched existing issues; closest are [Bug]: Runtime-loaded workspace plugins — HTTP routes return 404, registerService callbacks never fire (cold-boot deferred-load path missing pinActivePluginHttpRouteRegistry + startPluginServices) #94572 (workspace plugin deferred-load) and [Bug]: openclaw doctor --fix automatically injects plugins.load.paths entry pointing at bundled plugin dir, causing circular warning #85334 (
doctor --fixmanglingload.paths) — neither matches this install-triggered resolution failure.
Happy to provide sanitized config excerpts or debug logs (OPENCLAW_DEBUG=1 startup) on request.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jul 2, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 2, 2026, 1:55 PM ET / 17:55 UTC.
Summary
Keep open: current main still has a source-backed path where a persisted installed-plugin index can drive plugin metadata/config validation without rediscovering current
plugins.load.pathsworkspace plugins, matching the reported stale-config warnings after a managed npm install.Reproducibility: Do we have a high-confidence way to reproduce the issue? Yes at source level: current main has the reported warning path and a persisted-index branch that can omit
plugins.load.pathsplugins; no live managed-install repro was run in this read-only pass.Ways to help us reproduce this
Next step
This is a bounded source-reproducible plugin metadata bug with clear likely files, but automatic strict-bug intake should wait for a focused regression test or live repro.
Review details
Best possible solution:
Preserve the persisted plugin index fast path while ensuring current
plugins.load.pathsworkspace plugins are included in metadata snapshots and config validation after managed npm installs.Do we have a high-confidence way to reproduce the issue?
Do we have a high-confidence way to reproduce the issue? Yes at source level: current main has the reported warning path and a persisted-index branch that can omit
plugins.load.pathsplugins; no live managed-install repro was run in this read-only pass.Is this the best way to solve the issue?
Is this the best way to solve the issue? Yes: the narrow maintainable fix belongs in plugin metadata/installed-index registry construction, not in a config workaround, because workspace plugin discovery is already part of the documented metadata scope.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 55ed57a4e39b.
Label changes
Label changes:
issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:queueable-fix: Current issue advisory state selects this label.clawsweeper:fix-shape-clear: Current issue advisory state selects this label.clawsweeper:needs-live-repro: Current issue advisory state no longer selects this label.issue-rating: 🐚 platinum hermit: Current issue advisory state no longer selects this label.Label justifications:
P2: A managed plugin install can make existing workspace plugins disappear from CLI/gateway resolution, but the blast radius is limited to mixed managed-plugin andplugins.load.pathssetups.impact:other: The issue affects plugin discovery and setup reliability, which is maintainer-visible but outside the more specific owned impact categories.maturity:stable: The affected plugin setup/runtime path maps to M4 Stable areascli-install-update-onboard-doctorandgateway-runtimefrom the maturity shortlist.Evidence reviewed
Acceptance criteria:
What I checked:
plugin not found: ... (stale config entry ignored; remove it from plugins config)warning when configured plugin ids are missing from the manifest registry. (src/config/validation.ts:1956, 55ed57a4e39b)resolveInstalledPluginIndexPolicyHashhashes plugin enablement, allow/deny, slots, enabled entries, and channel enabled state, but notnormalized.loadPaths, so current load-path roots do not force persisted-index rejection. (src/plugins/installed-plugin-index-policy.ts:22, 55ed57a4e39b)loadPluginRegistrySnapshotWithMetadatareturns a persisted plugin registry snapshot when policy and source freshness checks pass, before falling back to discovery-derived loading. (src/plugins/plugin-registry-snapshot.ts:577, 55ed57a4e39b)loadPluginMetadataSnapshotImplusesloadPluginManifestRegistryForInstalledIndexwhenever the normalized index has plugin rows, instead of the normal manifest registry path. (src/plugins/plugin-metadata-snapshot.ts:699, 55ed57a4e39b)loadPluginManifestRegistryForInstalledIndexmapsparams.index.pluginsinto candidates and passes only those candidates intoloadPluginManifestRegistry, so load-path plugins absent from the index are not rediscovered there. (src/plugins/manifest-registry-installed.ts:621, 55ed57a4e39b)Likely related people:
src/plugins/plugin-metadata-snapshot.ts,src/plugins/plugin-registry-snapshot.ts,src/plugins/installed-plugin-index-store.ts)src/plugins/manifest-registry-installed.ts,src/plugins/installed-plugin-index-policy.ts,src/plugins/installed-plugin-index-registry.ts)resolveInstalledPluginIndexRegistrydiscovery output part of plugin hot paths. (role: adjacent feature contributor; confidence: medium; commits: 8ccb11cbfca7, 88d8d6af9336, c4663a1bc708; files:src/plugins/installed-plugin-index-registry.ts,src/plugins/plugin-metadata-snapshot.ts,src/gateway/server-plugins.ts)plugin-metadata-snapshot.tswith review byvincentkoc. (role: recent adjacent contributor; confidence: medium; commits: ce6d97d580d8; files:src/plugins/plugin-metadata-snapshot.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.fix(plugins): discover config load.paths plugins when index has entries
fix(plugins): discover config load.paths plugins when index has entri…
fix(plugins): discover config load.paths plugins when index has entri…