Repository navigation
fix(plugins): list silently hides discovery and registry failures - #129091
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 3:17 AM ET / 07:17 UTC. ClawSweeper reviewWhat this changesThe PR makes human-readable Merge readinessKeep open for normal maintainer review. Current main still prints only the workspace-scope warning, while this focused patch renders existing actionable discovery and registry diagnostics without changing JSON output. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherPlugin discovery and registry snapshotting produce diagnostics alongside plugin records. The CLI list command consumes that report to render either JSON for automation or a terminal table/verbose listing for operators. flowchart LR
A[Plugin discovery] --> C[Registry snapshot report]
B[Registry inventory] --> C
C --> D[Diagnostic selection]
D --> E[Human plugin list]
C --> F[JSON plugin list]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +6, Tests +61. Total +67 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one terminal-output owner for the already-produced diagnostics, preserve silent informational notices and unchanged JSON arrays, and complete exact-head CI before landing. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible. Current main reads only the Is this the best way to solve the issue? Yes. Rendering the existing report facts at the CLI’s human-output boundary preserves the registry owner and leaves the machine-readable JSON contract unchanged. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 79c2d7713871. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where
openclaw plugins listsilently hid plugin-discovery errors and actionable stale-registry warnings, potentially suggesting that no plugins existed when inventory scanning had actually failed.Why This Change Was Made
Display warning and error diagnostics already produced by plugin discovery and registry inventory in their existing human-output owner. Routine informational registry notices remain quiet, and structured JSON output keeps its unchanged complete diagnostic arrays.
User Impact
Operators now see actionable discovery failures and registry repair guidance in ordinary and verbose plugin listings without extra informational noise.
Evidence
node scripts/run-vitest.mjs src/cli/plugins-cli.list.test.ts src/cli/plugins-list-command.test.ts src/cli/plugins-list-format.test.ts src/plugins/status.registry-snapshot.test.ts src/plugins/plugin-registry.test.tspasses all 87 tests.