comfyui-mcp 0.52.41 → 0.52.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,6 +28,7 @@ import { resolveBlindTabGate } from "./blind-tab-gate.js";
28
28
  import { clearPanelDiskObservation } from "../services/panel-workspace.js";
29
29
  import { panelRecoveryContext } from "../services/panel-recovery.js";
30
30
  import { isPanelAutoInstallDisabled } from "../services/panel-installer.js";
31
+ import { releaseOwnedPanelLock } from "../services/panel-pin-guard.js";
31
32
  import { SelfRestarter, canSelfRestart } from "../services/self-restart.js";
32
33
  import { pairUrlDurability } from "./pair-durability.js";
33
34
  import { loadOrCreatePairToken } from "./pair-token-store.js";
@@ -6260,6 +6261,15 @@ export async function runPanelOrchestrator() {
6260
6261
  catch {
6261
6262
  // No lockfile / unreadable — nothing to clean up.
6262
6263
  }
6264
+ // Same for panel-op.lock: a clean exit (SIGINT or self-restart) must not
6265
+ // leave a lock whose owner is about to die (#1953). Idempotent if the
6266
+ // restarter already released it; a lock naming any other pid is left.
6267
+ try {
6268
+ releaseOwnedPanelLock();
6269
+ }
6270
+ catch {
6271
+ /* best-effort — unlock/reclaim remains the recovery if this fails */
6272
+ }
6263
6273
  };
6264
6274
  /** The single in-flight teardown, so repeated signals queue behind it. */
6265
6275
  let teardownOnce = null;