Repository navigation
fix(plugins): reuse published metadata on hot paths - #127355
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 21, 2026 18:21
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Five hot paths still re-scanned plugin manifests from disk on every call instead of reusing the lifecycle-owned published metadata generation: plugin tool resolution re-read the manifest per tool candidate (through a per-call
getRuntimeConfig()poll), skills loading and hook-dir resolution did an unconditional cold load before their own memos, channel command defaults passed astateDirthat unconditionally disabled snapshot reuse even when it equaled the process state root, and channel env-var discovery cold-loaded per credential lookup with a minted{}config.Phase 3 of the plugin-metadata campaign, following #126629 (secrets lanes) and #126630 (gateway generation reuse).
Why This Change Was Made
All five convert to the slot-probing
resolvePluginMetadataSnapshotwith the original (or absent) config, per the repo rule that gateway plugin metadata is process-stable and hot paths never freshness-poll. DeletingresolveCurrentManifestPluginalso removes a per-tool-call runtime-config poll; the prepared load-context config is the generation-consistent authority for cached tool resolution.User Impact
Manifest scans per operation drop to zero on every touched path when a published generation exists (tools 1→0 per cached execution, hooks 2→0, channel env vars 2→0, skills 1→0, channel command defaults 1→0). No behavior or config changes; workspace isolation, custom state roots, and tool ownership checks preserved.
Evidence
tools.optional,plugin-hooks,plugin-skills,channel-env-vars.dynamic,read-only-command-defaults); rerun green post-rebase on current mainpnpm check:changedgreen; autoreview clean (no actionable findings)