Repository navigation
fix(plugins): keep marketplace JSON output machine-readable - #117307
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 4:47 AM ET / 08:47 UTC. ClawSweeper reviewWhat this changesThe PR suppresses marketplace clone progress when Merge readinessKeep this PR open for maintainer landing review. Current main still routes marketplace-list progress through the human logger, while the proposed quiet JSON logger matches existing CLI JSON behavior and preserves stderr failures; no patch defect was found. The branch is behind current main and carries the protected Priority: P2 Review scores
Verification
How this fits togetherThe plugin marketplace CLI accepts a local path or remote repository and asks the marketplace loader for a manifest. The loader may clone a remote source and report progress; the CLI then emits either human-readable lines or one JSON payload for scripts and agents. flowchart LR
A[Marketplace source argument] --> B[Marketplace list CLI]
B --> C{JSON output requested?}
C -->|Yes| D[Quiet plugin logger]
C -->|No| E[Human progress logger]
D --> F[Marketplace loader and clone]
E --> F
F --> G[Manifest result or error]
G --> H[JSON stdout or text and stderr]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +77. Total +77 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase the focused logger change onto current main, confirm the latest ClawSweeper rank-up moves, and land it if exact-head checks preserve the demonstrated clean JSON, human-progress, and stderr-failure behavior. Do we have a high-confidence way to reproduce the issue? Yes—source inspection gives a high-confidence current-main path: a remote marketplace clone invokes Is this the best way to solve the issue? Yes—the proposed change is the narrowest maintainable repair because it reuses the canonical quiet plugin JSON logger at the CLI output boundary, leaves human logging unchanged, and retains existing result-based error handling. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e1101d15b87d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
) Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
openclaw plugins marketplace list owner/repo --jsonsuccessfully cloned the remote marketplace but printedCloning marketplace source owner/repo...to stdout before its JSON object. Scripts and agents could not parse the documented machine-readable output.Why This Change Was Made
The marketplace CLI always passed its human install logger to the marketplace loader. Select the already existing canonical quiet plugin JSON logger through the already existing lazy helper import when JSON output is requested, and keep the original logger unchanged for normal human commands.
User Impact
Remote and local JSON marketplace listing now write one clean complete JSON payload. Human listing still shows clone progress and plugin entries. Clone failures still emit their real diagnostic to stderr, exit nonzero, and never print a misleading success payload.
Evidence
defaultRuntimestdout/stderr, and a silent fakegit: remote JSON parsing failed; local JSON and human output served as controls.