fix(management): serialize lifecycle maintenance paths

- serialize deleteInstance with the same profile and plugin-layout locks as ensure

- lock non-account marketplace normalization paths and ignore .locks as an instance source
This commit is contained in:
Tam Nhu Tran
2026-03-18 08:04:48 -04:00
parent fc02c4b968
commit 36e8ed5d87
9 changed files with 115 additions and 11 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ export async function handleCreate(ctx: CommandContext, args: string[]): Promise
if (!profileExistedBeforeCreate) {
try {
ctx.instanceMgr.deleteInstance(profileName);
await ctx.instanceMgr.deleteInstance(profileName);
} catch {
// Best-effort cleanup.
}
+1 -1
View File
@@ -68,7 +68,7 @@ export async function handleRemove(ctx: CommandContext, args: string[]): Promise
}
// Delete instance
ctx.instanceMgr.deleteInstance(profileName);
await ctx.instanceMgr.deleteInstance(profileName);
// Delete profile from appropriate config
if (isUnifiedMode() && existsUnified) {