Skip to content

Subgraph input node retains linkIds when the link is disconnected #6247

@chrisgoringe

Description

@chrisgoringe

Prerequisites

  • I am running the latest version of ComfyUI
  • I have searched existing issues to make sure this isn't a duplicate
  • I have tested with all custom nodes disabled (see how)

What happened?

When the input node (panel) of a subgraph is disconnected from a node within the subgraph, the error "Link not found" starts appearing in the console:

Image

After a while of making changes these errors completely swamp the console.

Steps to Reproduce

  1. Load any workflow using a subgraph (eg Text to Image[New])
  2. Go into the subgraph and disconnect an input from a node (eg remove the link from "width" to EmptySD3Latent)
  3. Look in the javascript console

The link that is being reported as not found is the link that has been removed.

How is this affecting you?

Minor inconvenience

ComfyUI Frontend Version

1.28.7

Browser

Chrome/Chromium

Console Errors

<img width="372" height="200" alt="Image" src="https://github.com/user-attachments/assets/ed59a47d-d3e8-4cad-a37f-8166f0c41848" />

Logs

Additional Context

It appears that when the link is disconnected, its id is not removed from the input node linkIds property.

┆Issue is synchronized with this Notion page by Unito

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions