Skip to content

Commit 3851849

Browse files
authored
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.
1 parent 5855038 commit 3851849

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎src/commands/doctor-config-preflight-plugin-verification.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ export async function runStartupUpgradeConvergence(params: {
9797
cfg: params.cfg,
9898
env: params.env,
9999
compatibilityHostVersion: resolveCompatibilityHostVersion(params.env),
100-
baselineInstallRecords: plan.installRecords,
101100
}),
102101
params.measure,
103102
);

‎src/commands/doctor-config-preflight.state-migration.test.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ describe("runDoctorConfigPreflight state migration", () => {
647647
expect(startupMigrationLeaseRelease).toHaveBeenCalledOnce();
648648
});
649649

650-
it("pins startup plugin convergence to the explicit compatibility host version", async () => {
650+
it("pins startup plugin convergence without re-persisting the installed record snapshot", async () => {
651651
needsStartupMigrationCheckpoint.mockReturnValue(true);
652652
const previousHostVersion = process.env.OPENCLAW_COMPATIBILITY_HOST_VERSION;
653653
process.env.OPENCLAW_COMPATIBILITY_HOST_VERSION = "2026.7.2-beta.7";
@@ -670,7 +670,6 @@ describe("runDoctorConfigPreflight state migration", () => {
670670
cfg: { gateway: { mode: "local", port: 19091 } },
671671
env: expect.any(Object),
672672
compatibilityHostVersion: "2026.7.2-beta.7",
673-
baselineInstallRecords: {},
674673
});
675674
});
676675

0 commit comments

Comments
 (0)