Repository navigation
refactor: simplify skills CLI formatting - #147368
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 4:22 PM ET / 20:22 UTC. ClawSweeper reviewWhat this changesThe PR removes an unreachable JSON guard from skills CLI formatting and replaces a redundant test-fixture wrapper with its existing shared factory. Merge readiness✅ Ready for maintainer review This is a sound, behavior-preserving cleanup with no actionable findings. The simplification remains absent from fetched main, and the protected maintainer label excludes automatic closure. Priority: P3 Review scores
Verification
How this fits togetherThe skills CLI formats discovered skill status for list, info, and check commands. It sends either machine-readable JSON or human-readable status with profile-aware ClawHub guidance to stdout. flowchart LR
A[Skills commands] --> B[Skill status report]
B --> C{JSON requested?}
C -->|Yes| D[Sanitized JSON]
C -->|No| E[Human-readable status]
E --> F[Profile-aware ClawHub hint]
D --> G[Standard output]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -4, Tests -10. Total -14 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep JSON selection in the public formatters and use the existing canonical fixture factory directly. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a refactor, and source inspection confirms the removed guard is unreachable through the registered CLI callers. Is this the best way to solve the issue? Yes: removing the redundant private guard and forwarding wrapper preserves existing output and coverage without introducing another abstraction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cdc378c96f35. 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.
|
…1-prep * commit '912ae8d96e5964dfdcdf419b79613fb941cdf0a8': (350 commits) fix: keep workspace preparation responsive during cleanup (openclaw#147358) docs: alphabetize donors and sponsors and add Red Hat logo (openclaw#147302) fix(plugins): retain update authority through doctor effects (openclaw#144316) refactor(qa): share Multipass mount retry lifecycle (openclaw#147084) fix(memory): emit one JSON result for command failures (openclaw#147366) improve(plugins): speed up cold metadata loading (openclaw#147411) fix(sessions): avoid duplicate work after waited child replies (openclaw#147394) fix(agents): retain outstanding child results in parent context (openclaw#112623) test: preserve native workflow loader selection (openclaw#147403) fix: reduce repeated work while polling session pull requests (openclaw#147373) test(qa): preserve task cancellation across process replacement (openclaw#147382) fix: prevent sidebar refresh storms during session activity (openclaw#147400) refactor: simplify skills CLI formatting (openclaw#147368) fix: prevent Git checkout certificate failures behind egress proxy (openclaw#147410) fix(qa): stop live threads after their process leader exits (openclaw#147386) refactor(release): share agent turn retry lifecycle (openclaw#147076) fix(ui): keep uploaded images aligned with their prompts (openclaw#147389) fix(fs): guard skill reads and bound worker bundle staging (openclaw#147336) fix(ci): restore Linux service ownership fixtures (openclaw#147398) fix(plugins): preserve manifest permissions when building plugins (openclaw#147393) ...
What Problem This Solves
Skills CLI formatting retained an unreachable JSON guard and a redundant test-fixture wrapper.
User Impact
No user-visible behavior changes. Human output keeps its profile-aware ClawHub hints, and JSON output remains machine-readable.
Why This Change Was Made
The list, info, and check formatters already return JSON before appending terminal guidance. Remove the helper's unused JSON argument and guard. The formatting tests now call the shared canonical fixture factory directly, completing the earlier fixture migration. This removes four production lines and ten test-support lines without changing assertions.
Evidence