From dcdc9e7bfadde8cee18c376cfcb6ce87fb4c2fcd Mon Sep 17 00:00:00 2001 From: Connor Byrne Date: Mon, 11 May 2026 18:08:57 -0700 Subject: [PATCH] chore(ext-api/ext): tag rerouteNode globalThis.app accesses with strangler-bridge:Phase-B (review #12144.1.6) Per D9 strangler-bridge taxonomy, every direct globalThis.app access in v2 conversion files must carry a 'strangler-bridge:Phase-B' marker so the bridge audit can enumerate remaining touch-points before Phase-B removes the global. Tag the three sites in rerouteNode.v2.ts (configuringGraph guard in onConnectionsChange, configuringGraph guard in updateLink, and the canvas.setDirty call from the context-menu callback). --- src/extensions/core/rerouteNode.v2.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/extensions/core/rerouteNode.v2.ts b/src/extensions/core/rerouteNode.v2.ts index 642aed4151..15827acb23 100644 --- a/src/extensions/core/rerouteNode.v2.ts +++ b/src/extensions/core/rerouteNode.v2.ts @@ -107,6 +107,8 @@ function registerRerouteType() { ) { const { graph } = this if (!graph) return + // strangler-bridge:Phase-B — direct ComfyApp access; replace with + // dispatch/world signal once the bridge audit lands (D9). // @ts-expect-error ComfyApp if (globalThis.app?.configuringGraph) return @@ -212,6 +214,8 @@ function registerRerouteType() { const link = graph.links[l] if (!link) continue link.color = color + // strangler-bridge:Phase-B — direct ComfyApp access; replace with + // dispatch/world signal once the bridge audit lands (D9). // @ts-expect-error ComfyApp if (globalThis.app?.configuringGraph) continue const targetNode = graph.getNodeById(link.target_id) @@ -263,6 +267,8 @@ function registerRerouteType() { this.outputs[0].name = '' } this.setSize(this.computeSize()) + // strangler-bridge:Phase-B — direct ComfyApp access; replace with + // dispatch/world signal once the bridge audit lands (D9). // @ts-expect-error ComfyApp globalThis.app?.canvas?.setDirty(true, true) }