Skip to content

Installing a managed npm plugin breaks resolution of all plugins.load.paths workspace plugins ("plugin not found: stale config entry ignored") #99185

Closed

Description

@OrcasClaw

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 with openclaw.plugin.json + index.js), registered via plugins.load.paths and allowlisted in plugins.allow
  • Managed plugin installed to ~/.openclaw/npm/projects/openclaw-llama-cpp-provider-<hash>/

Steps to reproduce

  1. Working 2026.6.10 install with ≥1 workspace plugin registered via plugins.load.paths, enabled in plugins.entries, listed in plugins.allow. Confirm gateway startup line lists it.
  2. openclaw plugins install npm:@openclaw/llama-cpp-provider@2026.6.10
  3. Add llama-cpp to plugins.allow, openclaw plugins enable llama-cpp
  4. 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

Happy to provide sanitized config excerpts or debug logs (OPENCLAW_DEBUG=1 startup) on request.

Activity

  1. clawsweeper commented on Jul 2, 2026

    @clawsweeper
    Contributor

    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.paths workspace 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.paths plugins; no live managed-install repro was run in this read-only pass.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.
    • Include redacted logs or terminal output.

    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.paths workspace 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.paths plugins; 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:

    • The exact managed npm install plus gateway restart reproduction was not run in this read-only review, so the issue remains source-reproducible rather than live-reproduced.
    • No validation command was run because this review was required to keep the checkout read-only and avoid artifact-producing tests.

    Codex review notes: model internal, reasoning high; reviewed against 55ed57a4e39b.

    Label changes

    Label changes:

    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.
    • add clawsweeper:queueable-fix: Current issue advisory state selects this label.
    • add clawsweeper:fix-shape-clear: Current issue advisory state selects this label.
    • remove clawsweeper:needs-live-repro: Current issue advisory state no longer selects this label.
    • remove 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 and plugins.load.paths setups.
    • 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 areas cli-install-update-onboard-doctor and gateway-runtime from the maturity shortlist.
    Evidence reviewed

    Acceptance criteria:

    • node scripts/run-vitest.mjs src/plugins/manifest-registry-installed.test.ts
    • node scripts/run-vitest.mjs src/plugins/plugin-metadata-snapshot.memo.test.ts
    • node scripts/run-vitest.mjs src/config/config.plugin-validation.test.ts

    What I checked:

    • Live issue state: Live GitHub issue view shows this issue is still open, external-authored, and no PR search result currently references it as a fix candidate.
    • Exact warning path: Config validation emits the reported 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)
    • Policy hash excludes load paths: resolveInstalledPluginIndexPolicyHash hashes plugin enablement, allow/deny, slots, enabled entries, and channel enabled state, but not normalized.loadPaths, so current load-path roots do not force persisted-index rejection. (src/plugins/installed-plugin-index-policy.ts:22, 55ed57a4e39b)
    • Persisted registry accepted: loadPluginRegistrySnapshotWithMetadata returns 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)
    • Installed-index manifest path: loadPluginMetadataSnapshotImpl uses loadPluginManifestRegistryForInstalledIndex whenever the normalized index has plugin rows, instead of the normal manifest registry path. (src/plugins/plugin-metadata-snapshot.ts:699, 55ed57a4e39b)
    • Installed-index reconstruction only uses index rows: loadPluginManifestRegistryForInstalledIndex maps params.index.plugins into candidates and passes only those candidates into loadPluginManifestRegistry, so load-path plugins absent from the index are not rediscovered there. (src/plugins/manifest-registry-installed.ts:621, 55ed57a4e39b)

    Likely related people:

    • steipete: Authored and merged the SQLite persisted plugin install index work that routes current metadata snapshots through persisted index state. (role: introduced adjacent persisted-index behavior; confidence: high; commits: 5443baa8527e, a7e7bcaef17d, cc4375fa62ee; files: src/plugins/plugin-metadata-snapshot.ts, src/plugins/plugin-registry-snapshot.ts, src/plugins/installed-plugin-index-store.ts)
    • vincentkoc: Recent live history shows work on installed manifest realpath reuse and installed manifest registry helper behavior in the implicated metadata/index path. (role: recent area contributor; confidence: medium; commits: 94ae918d8f40, 8246e8dace5f, 71e361af8ae8; files: src/plugins/manifest-registry-installed.ts, src/plugins/installed-plugin-index-policy.ts, src/plugins/installed-plugin-index-registry.ts)
    • RomneyDa: Authored the discovery and metadata snapshot threading work that made resolveInstalledPluginIndexRegistry discovery 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)
    • galiniliev: Recent live commit history shows metadata cache behavior work in plugin-metadata-snapshot.ts with review by vincentkoc. (role: recent adjacent contributor; confidence: medium; commits: ce6d97d580d8; files: src/plugins/plugin-metadata-snapshot.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P2Normal backlog priority with limited blast radius.
    impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.
    maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    no-staleExclude from stale automation
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    and removed
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    on Jul 2, 2026
  3. added 2 commits that reference this issue on Jul 6, 2026
    dbef27d
    0f01930
  4. added a commit that references this issue on Jul 7, 2026
    57947c4
  5. locked as resolved and limited conversation to collaborators on Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.bugSomething isn't workingbug:behaviorIncorrect behavior without a crashclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.no-staleExclude from stale automation

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions