Repository navigation
fix(plugins): normal disablement is reported as an error - #129158
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 4:46 AM ET / 08:46 UTC. ClawSweeper reviewWhat this changesChanges human-readable plugin list and inspect output so disabled-plugin explanations are neutral reasons while actual load failures remain errors. Regression provenancePossible regression — probable (reviewed change; reproduction). No predecessor PR is attributed. Merge readinessKeep open: this maintainer-authored, protected PR fixes a source-proven CLI presentation bug with a small, targeted patch and focused regression coverage. It still needs exact-head required checks and a merge-result refresh because GitHub reports it behind Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe plugins CLI turns registry snapshots into operator-facing list and inspect output. Plugin loading records whether a plugin is disabled or failed; these formatters now use that status to label the recorded detail correctly. flowchart LR
A[Plugin configuration] --> B[Plugin loader]
B --> C[Plugin status record]
C --> D[Plugin list output]
C --> E[Plugin inspect output]
D --> F[Operator terminal]
E --> F
Before merge
Agent review detailsSecurityNone. PR surfaceSource +2, Tests +63. Total +65 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the two status-based presentation guards after the branch is refreshed against current Do we have a high-confidence way to reproduce the issue? Yes, from source: normal loader paths create Is this the best way to solve the issue? Yes. The status field is the loader-owned discriminator already used by compact list output, so applying it at the two remaining human-formatting boundaries is narrower and safer than changing loader metadata. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c697cf27dae2. LabelsLabel 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
HistoryReview history (1 earlier review cycle)
|
|
Rank-up follow-through: exact-head GitHub merge-result CI run 32828093797 passed on commit 4eef967, including the previously failing core lint shard; required openclaw/ci-gate is green. The inspect owner test split preserves all existing assertions and focused list/inspect coverage passes 35 tests. Skipping an unrelated behind-main-only rebase because repository policy treats main drift as advisory and rebasing would discard the proven exact-head CI; native prepare will revalidate the current head and merge state. |
|
Merged via squash.
|
…9158) * fix(plugins): stop labeling normal disablement as errors * test(plugins): separate inspect command coverage
What Problem This Solves
Fixes an issue where inspecting an intentionally disabled plugin displayed its ordinary disablement reason as a red failure, despite the plugin being disabled normally rather than broken.
Why This Change Was Made
Classify plugin error text using the existing authoritative plugin status at both human inspection and verbose formatting boundaries. Genuine failed plugins keep their error presentation, while intentionally disabled plugins retain their useful explanation under a neutral reason label.
User Impact
Operators can distinguish real plugin failures from normal disablement and still see why an intentional disablement occurred. Plugin JSON output, raw loader metadata, and enabled plugin behavior remain unchanged.
Evidence
Error:instead ofReason:.