Repository navigation
fix(plugins): load current plugins while update rollback trees are retained - #159052
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: blocked before merge. Reviewed September 26, 2026, 1:54 PM ET / 17:54 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch makes plugin loading, source verification, native companion scans, and artifact fingerprints ignore Git update rollback directories while retaining explicitly selected dependencies. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 3 items remain This PR remains useful: current main still scans retained rollback trees during plugin loading, while the merged updater fix addresses an earlier preparation stage. One introduced exclusion is too broad and can omit a valid plugin source entry whose name matches the updater pattern. Priority: P1 Review scores
Verification
How this fits togetherAfter a Git update, OpenClaw retains the previous runtime for rollback while the updated Gateway loads plugins. The plugin loader captures current source files, verifies their identity, and supplies the resulting modules to the Gateway. flowchart LR
A[Git update] --> B[Retained rollback tree]
B --> C[Plugin source scan]
D[Current plugin files] --> C
C --> E{Updater directory?}
E -->|Yes| F[Exclude rollback input]
E -->|No| G[Capture and verify source]
G --> H[Load plugin]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +30, Tests +104, Docs +2, Other +1. Total +137 across 12 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Limit incidental exclusion to real updater-owned staging directories, while keeping ordinary plugin files, symlinks, and explicitly selected dependencies in capture and verification. Do we have a high-confidence way to reproduce the issue? Yes. Current-main scans can reach retained rollback links, and the PR provides a focused module-loader scenario; this read-only review did not execute it. Is this the best way to solve the issue? Yes in principle: sharing the updater's staging-name contract with plugin loading is a narrow repair. The filter also needs an entry-type check to preserve ordinary source. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5a27fda95008. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What 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)
|
|
Merged via squash auto-merge.
|
…tained (openclaw#159052) * fix(plugins): load current plugins while update rollback trees are retained * fix: preserve plugin capture dependencies in PR wrapper extraction
What Problem This Solves
Fixes plugins failing to load after a successful Git update while the updater retains the previous runtime for rollback.
User Impact
The updated Gateway can load current plugins without a second Doctor run. Rollback trees remain owned by the updater and are retained until verification finishes. Explicitly selected dependencies still receive normal validation; there are no configuration or schema changes.
Why This Change Was Made
Rollback dependency links describe their final location, so scanning the retained
previoustree as plugin source can fail withENOENT. Reuse the updater's transaction-name contract across incidental plugin capture, native companion and metadata walks, and artifact fingerprints. Source verification checks included directory entries and lexical symlink targets, together with each selected file's identity and content, so rollback retirement cannot invalidate unchanged plugin source.Related: #158338 repaired candidate rehearsal inventory; this completes the corresponding runtime loading and artifact-identity paths. Candidate-side loading also recognizes transaction directories created by older published updaters.
Evidence
v2026.9.6promotion owner and its matching dependencies passed package, standalone and native-companion loading against this candidate in 2.658 seconds. The proof used real Git inventory, staging, activation and retirement; plugins loaded before rollback cleanup and remained usable afterward. It also independently rejected same-name symlink retargeting. This is promotion-owner × candidate-loader proof, not a complete CLI/service deployment.