mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
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.
This commit is contained in:
@@ -97,7 +97,6 @@ export async function runStartupUpgradeConvergence(params: {
|
||||
cfg: params.cfg,
|
||||
env: params.env,
|
||||
compatibilityHostVersion: resolveCompatibilityHostVersion(params.env),
|
||||
baselineInstallRecords: plan.installRecords,
|
||||
}),
|
||||
params.measure,
|
||||
);
|
||||
|
||||
@@ -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: {},
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user