Skip to content

fix(plugins): list silently hides discovery and registry failures - #129091

Merged
steipete merged 1 commit into
mainfrom
codex/plugin-list-discovery-diagnostics-20260824
Aug 25, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/plugin-list-discovery-diagnostics-20260824

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where openclaw plugins list silently 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

  • Two real CLI regressions failed before the fix: ordinary and verbose listings omitted both discovery failures and actionable registry warnings.
  • Independent review additionally reproduced dependency errors already shown in their plugin row; the final output owner avoids printing those exact visible errors twice while retaining diagnostics for filtered-out plugins.
  • After the fix, 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.ts passes all 87 tests.
  • Existing workspace warnings and JSON diagnostic arrays remain intact; formatting, lint, independent review, and structured review pass.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: S maintainer Maintainer-authored PR labels Aug 25, 2026
@steipete
steipete marked this pull request as ready for review August 25, 2026 07:10
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 25, 2026
@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 3:17 AM ET / 07:17 UTC.

ClawSweeper review

What this changes

The PR makes human-readable openclaw plugins list output show warning and error diagnostics from plugin discovery and registry inventory, while suppressing errors already visible in listed plugin rows.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep 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
Reviewed head: dbcb363f5a619e208a556854ec3d676edac0731c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with behavior-oriented CLI coverage and no concrete correctness or security finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-owned, maintainer-labeled CLI PR is exempt from the external-contributor proof gate; its body records targeted regression-test evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-owned, maintainer-labeled CLI PR is exempt from the external-contributor proof gate; its body records targeted regression-test evidence.
Evidence reviewed 6 items Current-main gap: Current main selects only the workspace-scope diagnostic for human output, so other discovery and registry diagnostics in the report are not rendered by this command.
Changed output owner: The branch replaces that one-code special case with a single human-output pass over discovery and registry diagnostics, retaining JSON’s earlier return path.
Diagnostic producer contract: The status-report owner carries discovery diagnostics and registry diagnostics as separate report fields, so the CLI is consuming existing facts rather than reimplementing discovery.
Findings None None.
Security None None.

Live Verification

Command: pnpm openclaw plugins list --help

Result: PASS (completed)

pnpm openclaw plugins list --help
runner@runnervm76f27:/tmp/clawsweeper-live-proof-129091-8ulhUw/target$ pnpm openclaw plugins list --help
$ node scripts/run-node.mjs plugins list --help
pnpm openclaw plugins list --help
[openclaw] Building TypeScript (dist is stale: missing_build_stamp - build stamp missing).
[openclaw] Building bundled plugin assets.
[canvas] build: node scripts/bundle-a2ui.mjs
[log] ‹DIR›/a2ui.bundle.js  chunk │ size: 399.96 kB
[log] ‹DIR›/a2ui-v0.9.bundle.js  chunk │ size: 615.66 kB
[log]
[success] rolldown v1.2.0 Finished in 118.05 ms
[diffs] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts curated
[diffs-language-pack] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts full
[discord] build: node --import tsx ../../scripts/build-discord-activity-sdk.mts
[tsdown-build] invocation 1/2 finished in 0.7s
node_modules/playwright-core/lib/coreBundle.js (65821:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65821:29 ]
       │
 65821 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

node_modules/playwright-core/lib/coreBundle.js (65828:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65828:29 ]
       │
 65828 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

node_modules/web-tree-sitter/web-tree-sitter.js (2343:30) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2343:31 ]
      │
 2343 │           ASM_CONSTS[start] = eval(func);
      │                               ──┬─
      │                                 ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

node_modules/web-tree-sitter/web-tree-sitter.js (2366:32) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2366:33 ]
      │
 2366 │           moduleExports[name] = eval(func);
      │                                 ──┬─
      │                                   ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

[tsdown-build] invocation 2/2 finished in 13.2s
[plugin-control-plane-loads] verified 35 built modules with native require and checked doctor closures
runtime-postbuild: 11 phases completed in 4847ms (slowest: built plugin control-plane loads 3056ms)
│
◇

OpenClaw 2026.8.1 (dbcb363) — All your chats, one OpenClaw.

Usage: openclaw plugins list [options]

List discovered plugins

Options:
  --enabled   Only show enabled plugins (default: false)
  -h, --help  Display help for command
  --json      Print JSON
  --verbose   Show detailed entries (default: false)
runner@runnervm76f27:/tmp/clawsweeper-live-proof-129091-8ulhUw/target$ pnpm openclaw plugins list --help


Assertions:

  • PASS expect_output: List discovered plugins

How this fits together

Plugin 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]
Loading

Before merge

  • Resolve merge risk (P1) - Production code grows by 6 lines (+10/-4) for this bug fix; the generalized renderer replaces the prior special case, but no net-neutral formulation was demonstrated.
  • Complete next step (P2) - This maintainer-labeled PR needs ordinary exact-head CI and maintainer landing review, not an automated repair.
Agent review details

Security

None.

PR surface

Source +6, Tests +61. Total +67 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 10 4 +6
Tests 1 65 4 +61
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 75 8 +67

Review metrics

Metric Value Why it matters
Production versus test delta production +6, tests +61 The production growth generalizes one special-case warning into shared diagnostic rendering; the test growth covers three human-output modes and JSON preservation.

Stored data model

Persistent data-model change detected: serialized state: src/cli/plugins-cli.list.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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 workspace-scope-omitted diagnostic for human output even though the snapshot report supplies broader discovery and registry diagnostic arrays.

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.

Labels

Label changes:

  • add P2: This repairs a bounded but operator-visible CLI diagnostic omission.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-owned, maintainer-labeled CLI PR is exempt from the external-contributor proof gate; its body records targeted regression-test evidence.

Label justifications:

  • P2: This repairs a bounded but operator-visible CLI diagnostic omission.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-owned, maintainer-labeled CLI PR is exempt from the external-contributor proof gate; its body records targeted regression-test evidence.

Evidence

What I checked:

  • Current-main gap: Current main selects only the workspace-scope diagnostic for human output, so other discovery and registry diagnostics in the report are not rendered by this command. (src/cli/plugins-list-command.ts:80, 79c2d7713871)
  • Changed output owner: The branch replaces that one-code special case with a single human-output pass over discovery and registry diagnostics, retaining JSON’s earlier return path. (src/cli/plugins-list-command.ts:80, dbcb363f5a61)
  • Diagnostic producer contract: The status-report owner carries discovery diagnostics and registry diagnostics as separate report fields, so the CLI is consuming existing facts rather than reimplementing discovery. (src/plugins/status-snapshot.ts:137, dbcb363f5a61)
  • Regression coverage: The added table-driven CLI test covers default, verbose, and enabled-only output; it also verifies informational registry notices remain quiet and JSON preserves diagnostic arrays. (src/cli/plugins-cli.list.test.ts:108, dbcb363f5a61)
  • Feature history: History identifies Peter Steinberger’s earlier metadata-listing refactor as the central ownership trail, with a later inventory-availability repair by Jason (Json). (src/cli/plugins-list-command.ts:42, 76ec39556ebd)
  • Review limitation: The PR body reports a targeted 87-test run, but this read-only review did not execute Vitest because repository policy prohibits artifact-writing test runs in the review checkout.

Likely related people:

  • steipete: Introduced the metadata-based plugin-list path and authored the current diagnostic-output repair. (role: feature owner and recent area contributor; confidence: high; commits: 76ec39556ebd, dbcb363f5a61; files: src/cli/plugins-list-command.ts, src/plugins/status-snapshot.ts)
  • Jason (Json): Authored the recent inventory-availability repair on the same plugin-listing history. (role: adjacent inventory contributor; confidence: medium; commits: 08224cdedbd9; files: src/cli/plugins-list-command.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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.

@steipete
steipete merged commit 8c5a12c into main Aug 25, 2026
307 checks passed
@steipete
steipete deleted the codex/plugin-list-discovery-diagnostics-20260824 branch August 25, 2026 07:32
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant