fix(install): guard state before selective merge

This commit is contained in:
dajiaohuang
2026-08-24 20:08:58 -04:00
committed by haelyra
parent 55c3cb5bb0
commit faaa21c4e4
3 changed files with 28 additions and 2 deletions
+1
View File
@@ -327,6 +327,7 @@ async function applyPreflightedManagedPlan(entry) {
);
const result = require('./install-executor').applyInstallPlan(preview.plan, {
beforeInstallStateRead: assertStateUnchanged,
beforeOperationWrite({ operation }) {
assertStateUnchanged();
const expected = preview.operations[operationIndex];