mirror of
https://github.com/Comfy-Org/desktop.git
synced 2026-11-04 23:47:43 +00:00
[GH-ISSUE #1669] [Bug]: Workflow connections broken in nested subgraphs when launching generation from root level via Electron U #498
Labels
No labels
area: desktop-app
Bounty
bug
bug-cop:answered
bug-cop:response-received
component: installer
component: preload
custom node
dependencies
Design
documentation
duplicate
enhancement
expected
frontend
good first issue
installation
Low-Priority
performance
Planned
platform: cross-platform
platform: windows
Potential Bug
Potential Bug
pull-request
question
refactor
Release
stale
User Support
V1
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/desktop#498
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aurel-tales on GitHub (Mar 21, 2026).
Original GitHub issue: https://github.com/Comfy-Org/desktop/issues/1669
App Version
ComfyUI_desktop v0.8.24
Expected Behavior
Connections inside nested subgraphs should remain intact when launching a generation from the root level.
Actual Behavior
Connections inside nested subgraphs appear intact after loading the workflow, but break at the moment generation is launched from the root level. Launching the generation from inside the parent subgraph works correctly. The issue is specific to the Electron UI — loading the same workflow via the browser at http://127.0.0.1:8188 works without any problem.
Steps to Reproduce
1 Load a workflow containing nested subgraphs via the Electron UI workflow loader
2 Connections appear correct at this stage
3 Enter the parent subgraph and run the generation → works correctly
4 Go back to the root level and run the generation → connections inside the nested subgraph break at that moment
Additional notes:
Loading the workflow by drag & dropping a PNG image generated with that workflow does not trigger the bug
The issue appeared after the last update
The portable version with the same ComfyUI version and custom nodes is not affected
ControlNet Tiled Upscale Imagine.json
Debug Logs
Browser Logs
Failed to load resource: the server responded with a status of 404 (Not Found)
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 423 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 424 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 425 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 430 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 457 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 431 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 432 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 400 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphInput.ts:156 Link not found 423
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 424
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 425
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 430
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 457
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 431
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 432
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 400
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 423
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 424
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 425
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 430
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 457
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 431
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 432
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 400
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 423 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 424 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 425 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 430 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 457 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 431 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 432 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 400 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphInput.ts:156 Link not found 423
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 424
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 425
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 430
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 457
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 431
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 432
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 400
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 423
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 424
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 425
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 430
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 457
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 431
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 432
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 400
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 315 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 412 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 428 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphInput.ts:156 Link not found 315
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 412
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 428
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 315
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 412
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 428
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 315 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 412 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 428 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphInput.ts:156 Link not found 315
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 412
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 428
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 315
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 412
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 428
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphNode.ts:1014 Failed to find corresponding input LLink ComfyNode
_resolveInputWidget @ SubgraphNode.ts:1014
SubgraphNode.ts:1014 Failed to find corresponding input LLink ComfyNode
_resolveInputWidget @ SubgraphNode.ts:1014
SubgraphNode.ts:1014 Failed to find corresponding input LLink ComfyNode
_resolveInputWidget @ SubgraphNode.ts:1014
SubgraphNode.ts:1014 Failed to find corresponding input LLink ComfyNode
_resolveInputWidget @ SubgraphNode.ts:1014
SubgraphNode.ts:1014 Failed to find corresponding input LLink ComfyNode
_resolveInputWidget @ SubgraphNode.ts:1014
SubgraphNode.ts:1014 Failed to find corresponding input LLink ComfyNode
_resolveInputWidget @ SubgraphNode.ts:1014
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 423 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 424 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 425 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 430 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 457 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 431 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 432 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 400 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphInput.ts:156 Link not found 423
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 424
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 425
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 430
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 457
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 431
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 432
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 400
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 423
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 424
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 425
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 430
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 457
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 431
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 432
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 400
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 423 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 424 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 425 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 430 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 457 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 431 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 432 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphNode.ts:999 [SubgraphNode.configure] No link found for link ID 400 ComfyNode
_resolveInputWidget @ SubgraphNode.ts:999
SubgraphInput.ts:156 Link not found 423
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 424
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 425
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 430
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 457
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 431
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 432
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 400
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 423
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 424
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 425
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 430
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 457
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 431
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 432
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:156 Link not found 400
getConnectedWidgets @ SubgraphInput.ts:156
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
SubgraphInput.ts:176 Widget not found Object
getConnectedWidgets @ SubgraphInput.ts:176
Settings JSON
comfy.settings.json
Other
The fact that the bug only triggers when launching from the root level suggests the issue lies in how the Electron UI flattens the nested subgraph hierarchy when serializing the prompt to send to the backend.
┆Issue is synchronized with this Notion page by Unito
@JiwaniZakir commented on GitHub (Apr 1, 2026):
The error output shows node IDs in colon-separated notation (e.g.,
171:245:258:121), which is how ComfyUI flattens nested subgraph nodes into a prompt — the missingimageinputs indicate those cross-subgraph links aren't being resolved when the prompt is serialized from the root context. The fact that it works from inside the parent subgraph, via the browser, and via PNG drag-and-drop strongly suggests the Electron frontend is taking a different code path when building the prompt from the root graph level, likely failing to correctly traverse and remap link IDs across subgraph boundaries before dispatch. A likely culprit is any Electron-specific interception layer (IPC handler or preload script) that post-processes or re-serializes the prompt object afterapp.queuePrompt()— this could be stripping or mis-mapping the subgraph link references that LiteGraph only fully resolves when the active graph context is the root.