Repository navigation
fix(cli): avoid duplicate catalog version prefixes - #145975
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. ClawSweeper will not retry this unchanged revision. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
Reuse node version labeling for marketplace list, plugin search, and skills search so already-prefixed versions and opaque build names keep their labels. Numeric versions still gain v; JSON values and install references stay unchanged. Move marketplace listing and skills search into their own command modules, removing the superseded inline implementations while preserving lazy loading, parent JSON options, and skills text sanitization. Extend command-boundary regressions and retain node status/describe coverage.
9330e9e to
826f30f
Compare
Qualify the two ordered telemetry-redaction source witnesses through the existing exact attribution owner. Select source policy for blobs and each patch witness so the shared value does not replace the refresh fixture's legacy roles or context-only contract. Refs openclaw/openclaw#145975. Native source admission reproduced the baseline refusal and admitted the exact candidate range. All32 focused cases pass, the complete repository check passes, precommit and committed P0-P2 reviews are clean, and exact-head CI/CodeQL and hosted proof review passed.
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 9:21 PM ET / September 18, 2026, 01:21 UTC. ClawSweeper reviewWhat this changesThe PR shares version-label formatting across catalog commands and node status, extracts marketplace listing and skills search into focused modules, and updates regression coverage and documentation. Merge readiness✅ Ready for maintainer review The fix remains necessary: current main still produces duplicate prefixes and alters build labels. The proposed patch has convincing CLI evidence and no actionable correctness findings. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s catalog CLI reads plugin marketplace manifests and ClawHub search results, then prints human-readable listings or JSON. This change affects displayed version labels while preserving catalog values and install references. flowchart TD
A[Marketplace manifests] --> C[Catalog CLI commands]
B[ClawHub search results] --> C
C --> D{Output mode}
D -->|Human| E[Shared version formatting]
D -->|JSON| F[Original catalog values]
G[Node status details] --> E
E --> H[Terminal output]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +9, Tests +132, Docs +8. Total +149 across 18 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Use the existing node-version display policy consistently across catalog commands while preserving machine output and install identifiers. Do we have a high-confidence way to reproduce the issue? Yes, from source: catalog entries containing v1.2.3 or canary pass through unconditional v-prefixing on current main. The supplied CLI captures demonstrate the symptom and correction; this review did not execute current main. Is this the best way to solve the issue? Yes. Reusing the established node formatter avoids competing formatting rules, and the extracted commands preserve their existing output and dispatch contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2763861cec97. 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.
|
Reuse node version labeling for marketplace list, plugin search, and skills search so already-prefixed versions and opaque build names keep their labels. Numeric versions still gain v; JSON values and install references stay unchanged. Move marketplace listing and skills search into their own command modules, removing the superseded inline implementations while preserving lazy loading, parent JSON options, and skills text sanitization. Extend command-boundary regressions and retain node status/describe coverage. Final proof: 185 focused tests, the complete selected gate, fresh P0-P2 review, and six actual CLI calls passed. All three JSON outputs were byte-identical to baseline. Refs openclaw#145975.
What Problem This Solves
Fixes duplicated version prefixes such as
vv1.2.3and altered build names such asvcanarywhen listing a plugin marketplace or searching ClawHub plugins and skills.User Impact
Numeric versions still display as
v1.2.3; existingv/Vprefixes and build names remain intact. JSON values, install references, skills text sanitization, and node status/describe labels keep their behavior.Why This Change Was Made
The three catalog renderers now share the existing node version-label policy. Marketplace listing and skills search move into focused command modules, preserving lazy plugin loading and parent/leaf skills JSON options while reducing the oversized command files. The superseded implementations, obsolete test mocks, and an unused private warning helper are removed.
Evidence
All 185 focused tests pass on the final source, covering the three catalog renderers, inherited JSON options, lazy help, owner-qualified skill references, sanitization, and unchanged node labels. Before the fix, the renderer regressions failed in all three catalog commands with 170 passing controls. Fresh independent review of the complete final change found no actionable P0–P2 issues.
The full production build passed before later removal of unused imports and a private dead helper. Final runtime proof uses the exact cleaned source with synthetic local marketplace and loopback ClawHub data: the three commands run in human and JSON modes with numeric, prefixed, opaque, padded, and missing versions; install hints remain unchanged and all three JSON outputs match the baseline byte for byte.
The final six-command replay and the complete selected core, test-type, lint, and repository checks passed. The proof covers synthetic CLI/catalog behavior; live ClawHub service and installation/activation were outside scope. Consent/settings GUI version renderers remain separate follow-ups.
Captured CLI proof
These are the inspected synthetic stdout captures from the baseline and final CLI replay. The final source manifest was verified against published head
826f30fc2f4582c25f67fdc4957ca84481f096fe. Each command also ran with--json; all six invocations in each arm exited zero. The fixture uses a local marketplace file and loopback ClawHub responses, with no live account or service claim.Commands:
pnpm --silent openclaw plugins marketplace list <synthetic-manifest>,pnpm --silent openclaw plugins search fixture --limit 6, andpnpm --silent openclaw skills search fixture --limit 6, each in human and JSON modes.Marketplace listing before and after
Before:
After:
Plugin search before and after
Before:
After:
Skills search before and after
Before:
After:
Captured JSON comparison (the same digest in both arms):
{ "marketplace": { "byteIdentical": true, "sha256": "92acc70ae6b6882114652a33639b151cfef75f7babd5917e5059a9f6fc5023b3" }, "plugins": { "byteIdentical": true, "sha256": "18e58625aa1f42b88b05b51e5c75301a4040051ede65dee7fd5577b61a3e7055" }, "skills": { "byteIdentical": true, "sha256": "844e7a9bdca567eab51e45e597f1904fc894417356700317945ebc1708d288ca" } }Exact-head CI passed with 140 successful jobs and 16 skipped jobs.