fix(plugins): enable metadata snapshot cache for status diagnostics#73410
fix(plugins): enable metadata snapshot cache for status diagnostics#73410xialonglee wants to merge 1 commit into
Conversation
Greptile SummaryThis PR changes the Confidence Score: 5/5Safe to merge — a focused one-line change with correct test coverage and no activation side-effect risk. The change is minimal, well-understood, and the cache hit path for non-activating loads is guarded such that no activation state (commands, handlers, agent harnesses) is restored. The test is updated consistently. No issues found. No files require special attention. Reviews (1): Last reviewed commit: "fix(plugins): enable metadata snapshot c..." | Re-trigger Greptile |
|
Thanks @xialonglee. I checked this against current The slow path from the issue is Verified locally:
Closing this PR as superseded by the landed fix. |
fix(plugins): enable metadata snapshot cache for status diagnostics
Summary
Fixes #73291.
This PR enables plugin metadata snapshot caching (default 1 second TTL) for validate-mode metadata loads used by status diagnostics, reducing repeated manifest discovery/parse work during
openclaw statustext-mode scans.Issue Evidence Is Clear
openclaw statustext mode taking ~20-30s while--jsonis much faster.statx/realpathSyncstorms) and heavy manifest parse stacks.cache: falsein metadata snapshot loads.openclaw statustext mode extremely slow (~20-30s) due tocache: falsehardcoded in manifest registry loader #73291What Changed
src/plugins/runtime/metadata-registry-loader.tscache: falsetocache: true.activate: false,mode: "validate"), only allowing short-lived manifest/discovery cache reuse.src/plugins/runtime/metadata-registry-loader.test.tscache: true.Why This Small Fix
Validation
pnpm docs:listpnpm test src/plugins/runtime/metadata-registry-loader.test.tsRisk
AI-assisted