Skip to content

fix(cli): avoid duplicate catalog version prefixes - #145975

Merged
steipete merged 1 commit into
mainfrom
codex/qa-catalog-version-20260912
Sep 18, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-catalog-version-20260912

Conversation

@steipete

@steipete steipete commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes duplicated version prefixes such as vv1.2.3 and altered build names such as vcanary when listing a plugin marketplace or searching ClawHub plugins and skills.

User Impact

Numeric versions still display as v1.2.3; existing v/V prefixes 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, and pnpm --silent openclaw skills search fixture --limit 6, each in human and JSON modes.

Marketplace listing before and after

Before:

Marketplace Fixture Marketplace
fixture-0 v1.2.3
fixture-1 vv1.2.3
fixture-2 vV1.2.3
fixture-3 vcanary
fixture-4 vv1.2.3
fixture-5

After:

Marketplace Fixture Marketplace
fixture-0 v1.2.3
fixture-1 v1.2.3
fixture-2 V1.2.3
fixture-3 canary
fixture-4 v1.2.3
fixture-5
Plugin search before and after

Before:

ClawHub plugins (6)
fixture-0  code-plugin | community | v1.2.3
  Install: openclaw plugins install clawhub:fixture-0
fixture-1  code-plugin | community | vv1.2.3
  Install: openclaw plugins install clawhub:fixture-1
fixture-2  code-plugin | community | vV1.2.3
  Install: openclaw plugins install clawhub:fixture-2
fixture-3  bundle-plugin | community | vcanary
  Install: openclaw plugins install clawhub:fixture-3
fixture-4  bundle-plugin | community | v  v1.2.3  
  Install: openclaw plugins install clawhub:fixture-4
fixture-5  bundle-plugin | community
  Install: openclaw plugins install clawhub:fixture-5

After:

ClawHub plugins (6)
fixture-0  code-plugin | community | v1.2.3
  Install: openclaw plugins install clawhub:fixture-0
fixture-1  code-plugin | community | v1.2.3
  Install: openclaw plugins install clawhub:fixture-1
fixture-2  code-plugin | community | V1.2.3
  Install: openclaw plugins install clawhub:fixture-2
fixture-3  bundle-plugin | community | canary
  Install: openclaw plugins install clawhub:fixture-3
fixture-4  bundle-plugin | community | v1.2.3
  Install: openclaw plugins install clawhub:fixture-4
fixture-5  bundle-plugin | community
  Install: openclaw plugins install clawhub:fixture-5
Skills search before and after

Before:

@fixture-owner/skill-0 v1.2.3  Fixture skill
@fixture-owner/skill-1 vv1.2.3  Fixture skill
@fixture-owner/skill-2 vV1.2.3  Fixture skill
@fixture-owner/skill-3 vcanary  Fixture skill
@fixture-owner/skill-4 vv1.2.3  Fixture skill
@fixture-owner/skill-5  Fixture skill

After:

@fixture-owner/skill-0 v1.2.3  Fixture skill
@fixture-owner/skill-1 v1.2.3  Fixture skill
@fixture-owner/skill-2 V1.2.3  Fixture skill
@fixture-owner/skill-3 canary  Fixture skill
@fixture-owner/skill-4 v1.2.3  Fixture skill
@fixture-owner/skill-5  Fixture skill

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.

@clawsweeper

clawsweeper Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review blocked

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

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation cli CLI command changes size: S maintainer Maintainer-authored PR labels Sep 12, 2026
@steipete
steipete marked this pull request as ready for review September 12, 2026 13:13
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.
@steipete
steipete force-pushed the codex/qa-catalog-version-20260912 branch from 9330e9e to 826f30f Compare September 17, 2026 23:01
steipete added a commit to openclaw/clawsweeper that referenced this pull request Sep 18, 2026
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.
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 Sep 18, 2026
@clawsweeper

clawsweeper Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 9:21 PM ET / September 18, 2026, 01:21 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 826f30fc2f4582c25f67fdc4957ca84481f096fe

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, sound fix with relevant command-boundary coverage and convincing before/after CLI captures.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): Captured runs of the actual marketplace-list, plugin-search, and skills-search CLI entrypoints at the reviewed head show corrected labels using local and loopback fixtures, unchanged install hints, and byte-identical JSON. These observations cover the changed rendering behavior without claiming live-service or installation coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): Captured runs of the actual marketplace-list, plugin-search, and skills-search CLI entrypoints at the reviewed head show corrected labels using local and loopback fixtures, unchanged install hints, and byte-identical JSON. These observations cover the changed rendering behavior without claiming live-service or installation coverage.
Evidence reviewed 7 items Current main still contains the defect: Plugin search unconditionally prefixes nonempty versions with v. Current-main marketplace listing and skills search retain the same unconditional prefix behavior.
Latest-release comparison: The supplied latest release, v2026.9.4, also contains the unconditional plugin-search prefix; the central problem is not already fixed in that release.
Shared formatting and complete caller cutover: The shared formatter preserves the former node-label behavior. All three catalog renderers consume it; marketplace dispatch uses the extracted module, and skills search retains parent/leaf JSON handling, text sanitization, owner-qualified references, and trust labels. The removed warning helper has no remaining references.
Findings None None.
Security None None.

How this fits together

OpenClaw’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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +9, Tests +132, Docs +8. Total +149 across 18 files.

View PR surface stats
Area Files Added Removed Net
Source 9 116 107 +9
Tests 6 263 131 +132
Docs 3 8 0 +8
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 18 387 238 +149

Review metrics

Metric Value Why it matters
Machine-output compatibility 3 JSON outputs reported byte-identical The captured before/after comparisons support compatibility for scripts consuming all three catalog commands.

Technical review

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

Labels

Label changes:

  • add P3: This fixes misleading CLI version labels without changing installation, catalog data, or runtime operation.
  • add proof: sufficient: Contributor real behavior proof is sufficient. Captured runs of the actual marketplace-list, plugin-search, and skills-search CLI entrypoints at the reviewed head show corrected labels using local and loopback fixtures, unchanged install hints, and byte-identical JSON. These observations cover the changed rendering behavior without claiming live-service or installation coverage.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): Captured runs of the actual marketplace-list, plugin-search, and skills-search CLI entrypoints at the reviewed head show corrected labels using local and loopback fixtures, unchanged install hints, and byte-identical JSON. These observations cover the changed rendering behavior without claiming live-service or installation coverage.

Label justifications:

  • P3: This fixes misleading CLI version labels without changing installation, catalog data, or runtime operation.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): Captured runs of the actual marketplace-list, plugin-search, and skills-search CLI entrypoints at the reviewed head show corrected labels using local and loopback fixtures, unchanged install hints, and byte-identical JSON. These observations cover the changed rendering behavior without claiming live-service or installation coverage.
  • proof: sufficient: Contributor real behavior proof is sufficient. Captured runs of the actual marketplace-list, plugin-search, and skills-search CLI entrypoints at the reviewed head show corrected labels using local and loopback fixtures, unchanged install hints, and byte-identical JSON. These observations cover the changed rendering behavior without claiming live-service or installation coverage.

Evidence

What I checked:

  • Current main still contains the defect: Plugin search unconditionally prefixes nonempty versions with v. Current-main marketplace listing and skills search retain the same unconditional prefix behavior. (src/cli/plugins-search-command.ts:23, 2763861cec97)
  • Latest-release comparison: The supplied latest release, v2026.9.4, also contains the unconditional plugin-search prefix; the central problem is not already fixed in that release. (src/cli/plugins-search-command.ts:23, 3a9d69db306c)
  • Shared formatting and complete caller cutover: The shared formatter preserves the former node-label behavior. All three catalog renderers consume it; marketplace dispatch uses the extracted module, and skills search retains parent/leaf JSON handling, text sanitization, owner-qualified references, and trust labels. The removed warning helper has no remaining references. (src/cli/version-format.ts:2, 826f30fc2f45)
  • Captured production CLI behavior: The supplied PR-body snapshot, sourceRevision e3acc52295e89f9ce13ad887b74207d83e35f181c62aaba6416e940630ef767c, contains before/after stdout for marketplace listing, plugin search, and skills search through pnpm openclaw. Local marketplace and loopback ClawHub fixtures exercise numeric, v/V-prefixed, opaque, padded, and missing versions. After-fix output is correct, install hints remain intact, and all three JSON comparisons report identical bytes. The body ties its final source manifest to the reviewed head. This review inspected those captures without rerunning target code. (826f30fc2f45)
  • Behavioral regression coverage: The extracted skills-search tests retain owner references, external-source trust labels, multiline sanitization, and limit validation while adding version cases and both JSON option positions. Plugin search, marketplace listing, and node status/describe also cover formatting and JSON preservation. (src/cli/skills-search-cli.test.ts:121, 826f30fc2f45)
  • Prior merged-area contribution: Recent file history identifies prior plugin-search maintenance by Peter Steinberger; GitHub commit metadata resolves the author to steipete. The inspected patch preserves profile-aware install hints on the exact return line retained by this PR. Older blame and pickaxe queries encountered unavailable blobs, so no claim about original feature introduction is made. (src/cli/plugins-search-command.ts:27, 41e87013ae48)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

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 c928f7a into main Sep 18, 2026
223 checks passed
@steipete
steipete deleted the codex/qa-catalog-version-20260912 branch September 18, 2026 01:26
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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