Repository navigation
fix(plugins): preserve update failure codes - #188187
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesPlugin update error outcomes retain the diagnostic code supplied by the installer or metadata lookup. Example: Updating lossless-claw encounters an npm registry timeout.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR fixes a verified diagnostic omission still present on main, with no introduced correctness or security defect found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherPlugin installers and metadata probes supply failures to the shared update-summary producer; CLI and post-core update consumers receive its structured outcomes. flowchart LR
A[Plugin update request] --> B[Metadata probe or installer]
B --> C[Installed plugin update owner]
C --> D[Failure summary producer]
D --> E[CLI diagnostics]
D --> F[Post-core failure facts]
Technical reviewBest possible solution: Preserve the supplied diagnostic code in the existing shared error-summary producer, as this PR does. Do we have a high-confidence way to reproduce the issue? Source inspection traces npm and ClawHub codes into recordPluginUpdateFailure and shows main dropping them from error outcomes; no target code was executed. Is this the best way to solve the issue? This is the smallest complete fix: retain the existing optional field at its canonical producer and extend existing boundary assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e1535e45662b. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1, Tests -4. Total -3 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 30, 2026, 4:39 AM ET / 08:39 UTC. |
|
Merged via squash.
|
What Problem This Solves
Plugin update error outcomes lose the installer's typed failure code, leaving npm metadata and ClawHub artifact failures identifiable only through their text.
User Impact
Error outcomes now retain their existing npm/ClawHub diagnostic code. Status, messages, retention, activation, consent and trust-skip behavior remain unchanged. No configuration or migration is required.
Why This Change Was Made
The update owner already passes the code into the canonical summary producer, which used it for policy and then omitted it from the error outcome. Preserve that field at its producer. The production change adds one line for the existing typed diagnostic contract; existing regression assertions cover npm metadata and the sibling ClawHub source. Shared metadata expectations preserve exact equality outside beta and beta's existing partial match while removing duplication. Release-note context: plugin update errors retain typed diagnostics.
Evidence
Exact-head PR CI passed all 86 plugin update tests, including the npm metadata and ClawHub artifact regression cases, retention, consent, trust-skip and alias custody. Executed job, reviewed head
eee34bafc92b9d8c0f4f27d212e7be0694acda33.Production: one line added. Tests: 25 added / 29 removed. This code-only editor has no dependency installation; Testbox capacity queued during the related fixture proof, so execution proof uses PR CI.
Local autoreview of the complete changed owner/test modules and installed-update/source/attempt owners completed with no P0–P3 findings. Targeted oxfmt and
git diff --checkpassed, and normal signed-commit hooks passed. No live service or operator state was changed.