comfyui-mcp 0.50.71 → 0.50.73
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.
- package/dist/orchestrator/panel-tools.js +25 -3
- package/dist/orchestrator/panel-tools.js.map +1 -1
- package/dist/orchestrator/turn-origins.js +38 -21
- package/dist/orchestrator/turn-origins.js.map +1 -1
- package/dist/services/node-management.js +52 -2
- package/dist/services/node-management.js.map +1 -1
- package/dist/services/ui-bridge.js +4 -1
- package/dist/services/ui-bridge.js.map +1 -1
- package/package.json +1 -1
|
@@ -4704,8 +4704,21 @@ export function makePanelToolCtx(bridge, tabId, workflowTargets) {
|
|
|
4704
4704
|
if (!opts?.scopeRecoveryConsent || !pinProvenDead) {
|
|
4705
4705
|
return { previous, current: previous, rebound: false };
|
|
4706
4706
|
}
|
|
4707
|
-
|
|
4708
|
-
|
|
4707
|
+
// #1077 Finding 2 — carry the REASON out when nothing was repinned. This
|
|
4708
|
+
// collapsed to `Boolean(repinned)`, so four different refusals arrived at
|
|
4709
|
+
// the caller as one bare `false` and the user was told only that the
|
|
4710
|
+
// adoption was refused. One of those refusals repeats forever (an active
|
|
4711
|
+
// tab on another backend's conversation while this one has several), and
|
|
4712
|
+
// nothing in the reply hinted that naming a workflow is the way out.
|
|
4713
|
+
const outcome = bridge.repinScopeToActive?.(previous);
|
|
4714
|
+
const repinned = typeof outcome === "string" ? outcome : undefined;
|
|
4715
|
+
const repinRefusal = outcome && typeof outcome === "object" ? outcome.reason : undefined;
|
|
4716
|
+
return {
|
|
4717
|
+
previous,
|
|
4718
|
+
current: previous,
|
|
4719
|
+
rebound: Boolean(repinned),
|
|
4720
|
+
...(repinRefusal ? { repinRefusal } : {}),
|
|
4721
|
+
};
|
|
4709
4722
|
}
|
|
4710
4723
|
// A healthy binding is left untouched (never disturb a live session). Recovery only
|
|
4711
4724
|
// fires for an orphaned/stale tab id.
|
|
@@ -7624,7 +7637,16 @@ export function buildPanelToolDefs() {
|
|
|
7624
7637
|
// THE explicit scope-recovery consent (#884 gate 3) — the only
|
|
7625
7638
|
// caller that may escape a DEAD scope pin (a healthy pin still
|
|
7626
7639
|
// stays put; see rebindToActiveTab's double gate).
|
|
7627
|
-
ctx.rebindToActiveTab({ scopeRecoveryConsent: true });
|
|
7640
|
+
const rebind = ctx.rebindToActiveTab({ scopeRecoveryConsent: true });
|
|
7641
|
+
// #1077 Finding 2 — a scope repin that declined now says WHY, and
|
|
7642
|
+
// this is where the user reads it. The refusal used to be a bare
|
|
7643
|
+
// boolean, so a session stuck in the one state that repeats forever
|
|
7644
|
+
// (the active tab belongs to another backend's conversation while
|
|
7645
|
+
// this one has several eligible tabs) saw no difference from a
|
|
7646
|
+
// healthy pin being correctly left alone.
|
|
7647
|
+
if (rebind?.repinRefusal) {
|
|
7648
|
+
rebindNote += ` The session pin was NOT moved: ${rebind.repinRefusal}.`;
|
|
7649
|
+
}
|
|
7628
7650
|
}
|
|
7629
7651
|
catch (err) {
|
|
7630
7652
|
// #474: with 2+ live tabs the rebind is AMBIGUOUS — fail so the user picks.
|