Repository navigation
fix(plugins): preserve startup release during repair - #120085
Conversation
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 9:31 PM ET / August 7, 2026, 01:31 UTC. ClawSweeper reviewWhat this changesThe PR passes gateway startup’s resolved compatibility version into plugin repair while preserving candidate-version behavior for explicit updates. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open for normal maintainer landing: exact-head source is unchanged from the prior clean review, exact-head CI succeeded, and no actionable finding or rank-up move remains. Priority: P2 Review scores
Verification
How this fits togetherGateway startup runs doctor preflight and repairs configured plugin installs before continuing. Plugin repair uses the compatibility-host version to select a compatible plugin release, while explicit updates retain the candidate runtime version. flowchart LR
A[Gateway startup environment] --> B[Doctor preflight]
B --> C[Resolve compatibility version]
C --> D[Plugin convergence]
D --> E[Configured plugin repair]
F[Explicit update] --> D
E --> G[Compatible plugin release]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +3, Tests +44. Total +47 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Land the narrow startup-only handoff through normal maintainer gates, keeping one convergence owner and the explicit-update default intact. Do we have a high-confidence way to reproduce the issue? Yes—the pre-patch path overwrites an explicit startup compatibility version with VERSION before repair, and exact-head tests cover the corrected startup and update paths. Is this the best way to solve the issue? Yes—the shared convergence owner accepts the already-resolved startup fact, avoiding duplicate repair policy while preserving explicit-update semantics. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 53006a289e76. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Merged via squash.
|
* origin/main: (58 commits) fix(test): restart shared gateway after migration convergence (openclaw#120089) fix(ui): make active-run steering reliable (openclaw#120083) fix(telegram): preserve voice fallback text test(swift): preserve queued websocket frames (openclaw#120106) fix: reject missing oxlint shard selectors (openclaw#120096) test(channels): align prerelease fallback catalog spec (openclaw#120092) fix(node-cli): warn when systemd user lingering is disabled after install (openclaw#118430) fix(diagnostics): preserve CLI turn usage totals (openclaw#120100) fix(gateway): derive lock and coordinator paths from the resolved state dir (openclaw#120110) fix(release): isolate private Telegram QA harness (openclaw#120088) test(agents): exercise execution attribution ingress guard fix(gateway): defer attribution until admission succeeds refactor(agents): centralize exact execution attribution fix(google): accept base64url provider media (openclaw#116204) fix(plugins): warn when registerHook uses a typed hook event name (openclaw#118601) fix(canvas): serve Content-Length on A2UI HEAD responses (openclaw#117961) fix(gateway): make doctor dreaming timestamp comparators NaN-safe (openclaw#118749) fix(heartbeat): explain target-none skips (openclaw#119689) fix(security): stop recommending retired install-policy bypasses (openclaw#120011) fix(plugins): preserve startup release during repair (openclaw#120085) ... # Conflicts: # CHANGELOG.md # src/config/sessions/session-accessor.sqlite-transcript-write.ts
* fix(plugins): preserve startup compatibility version * chore(ci): refresh merge context
What Problem This Solves
Fixes an issue where gateway startup could repair version-bound plugins against the executing binary version instead of the compatibility version selected by the startup environment. After an update, that mismatch could select the wrong plugin release during startup convergence.
Why This Change Was Made
The shared post-core convergence owner now accepts an optional compatibility host version. Gateway startup resolves and passes its environment-selected version, while the explicit update path omits the override and continues using the candidate runtime version.
User Impact
Plugin repair during gateway startup stays aligned with the selected OpenClaw release. Explicit updates retain their existing candidate-version behavior.
Evidence
node scripts/run-vitest.mjs src/cli/update-cli/post-core-plugin-convergence.test.ts- 29 passednode scripts/run-vitest.mjs src/commands/doctor-config-preflight.state-migration.test.ts- 30 passednode scripts/check-changed.mjs -- <changed files>- passed on Blacksmith Testboxoxfmt --checkandgit diff --check- passed