From 3851849eead63a1dce8a8265eb604e5eaf88653a Mon Sep 17 00:00:00 2001 From: Mariano <132747814+mbelinky@users.noreply.github.com> Date: Wed, 12 Aug 2026 00:49:26 +0200 Subject: [PATCH] fix(plugins): keep startup convergence read-only (#122330) Prevent gateway startup verification from re-persisting an unchanged plugin install-record baseline. This keeps startup convergence read-only while preserving update-time persistence and the existing fail-closed check for real migration input changes. --- src/commands/doctor-config-preflight-plugin-verification.ts | 1 - src/commands/doctor-config-preflight.state-migration.test.ts | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/commands/doctor-config-preflight-plugin-verification.ts b/src/commands/doctor-config-preflight-plugin-verification.ts index 0c5f000e4cec..23be3f7fe92a 100644 --- a/src/commands/doctor-config-preflight-plugin-verification.ts +++ b/src/commands/doctor-config-preflight-plugin-verification.ts @@ -97,7 +97,6 @@ export async function runStartupUpgradeConvergence(params: { cfg: params.cfg, env: params.env, compatibilityHostVersion: resolveCompatibilityHostVersion(params.env), - baselineInstallRecords: plan.installRecords, }), params.measure, ); diff --git a/src/commands/doctor-config-preflight.state-migration.test.ts b/src/commands/doctor-config-preflight.state-migration.test.ts index 56f279ae15cf..79c70e7526dc 100644 --- a/src/commands/doctor-config-preflight.state-migration.test.ts +++ b/src/commands/doctor-config-preflight.state-migration.test.ts @@ -647,7 +647,7 @@ describe("runDoctorConfigPreflight state migration", () => { expect(startupMigrationLeaseRelease).toHaveBeenCalledOnce(); }); - it("pins startup plugin convergence to the explicit compatibility host version", async () => { + it("pins startup plugin convergence without re-persisting the installed record snapshot", async () => { needsStartupMigrationCheckpoint.mockReturnValue(true); const previousHostVersion = process.env.OPENCLAW_COMPATIBILITY_HOST_VERSION; process.env.OPENCLAW_COMPATIBILITY_HOST_VERSION = "2026.7.2-beta.7"; @@ -670,7 +670,6 @@ describe("runDoctorConfigPreflight state migration", () => { cfg: { gateway: { mode: "local", port: 19091 } }, env: expect.any(Object), compatibilityHostVersion: "2026.7.2-beta.7", - baselineInstallRecords: {}, }); });