ComfyUI_frontend icon indicating copy to clipboard operation
ComfyUI_frontend copied to clipboard

[Subgraph] Primitive and Int nodes can't link to subgraph widget.

Open comfyui-wiki opened this issue 1 month ago • 4 comments

Primitive and Int nodes can't link to subgraph widget

Version: FE 1.29.1

https://github.com/user-attachments/assets/7938e04f-36f8-4c95-b7f1-6cd41ca77466

Version: main branch

https://github.com/user-attachments/assets/e592b1e1-bd9d-4051-9fe0-c0a2bd9bbe7c

┆Issue is synchronized with this Notion page by Unito

comfyui-wiki avatar Nov 27 '25 14:11 comfyui-wiki

This is a known limitation in both FE 1.29.1 and the main branch. Primitive and Int nodes can't link to subgraph widgets because subgraph primitive inputs are currently always widgets, and the linking logic only allows connections if the input exposes a widget or a recognized widget type. If the subgraph input doesn't match, the connection is rejected. This is not a hardcoded block, but a result of type and widget metadata checks in the frontend code. There are ongoing feature requests to allow toggling primitive subgraph inputs between widget and pure input modes, but this isn't implemented yet [source].

Workarounds: you can sometimes fix the issue by recreating the int node after conversion, or by using a reroute node as an intermediary between the subgraph input and the node input [source]. Manual repair (like editing the workflow JSON) is also possible if widget links are lost during subgraph conversion.

For more technical details, see the related issues and code references:

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Open in Cursor Join Discord Share on X

dosubot[bot] avatar Nov 27 '25 14:11 dosubot[bot]

I have also encountered many problems with the new UI, for example:

  • Nodes do not update automatically (generated images do not refresh).
  • The node interaction box does not adapt to the width of the node frame, so the full model name, etc., cannot be displayed.
  • Nodes reset their width and height; I don't want opening a workflow to reset the width and height of the nodes.
  • Dragging and dropping nodes is now very troublesome (as shown in the video above).
  • Many nodes cannot be used normally, such as the "Set Point" node.
  • And various other display issues.

zpengcom avatar Nov 28 '25 05:11 zpengcom

@zpengcom thank you. Please continue to report any issues you discover. We will fix them all in the coming weeks.

christian-byrne avatar Nov 28 '25 18:11 christian-byrne

I'm not having any luck reproducing the originally reported issue. The video does not depict a socket on the width and height widget. Are these widgets linked inside the subgraph? or are they promoted with the purple border?

AustinMroz avatar Nov 28 '25 18:11 AustinMroz

https://github.com/user-attachments/assets/2eca9d8c-6a90-41fd-9fd4-4989638189ca

Sorry for not following up on this issue for the past two weeks.

  1. Only the widgets promoted with a purple border are not working correctly, while the linked ones work normally.
  2. Tested on main branch, cloud, latest stable, I was able to reproduce the same issue with the workflow I attached below

Subgraph workflow

subgraph_issue.json

comfyui-wiki avatar Dec 14 '25 13:12 comfyui-wiki