[PR #18] RFC: Variable length node inputs #13

Open
opened 2026-10-26 22:01:22 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/rfcs/pull/18
Author: @huchenlei
Created: 1/16/2025
Status: 🔄 Open

Base: main ← Head: dynamic_inputs


📝 Commits (2)

📊 Changes

1 file changed (+345 additions, -0 deletions)

View changed files

➕ rfcs/0000-variable-length-node-inputs.md (+345 -0)

📄 Description

Summary

This RFC proposes adding support for variable-length inputs in ComfyUI nodes, allowing a single node to accept a dynamic number of inputs. The feature introduces a new var_length input type configuration that enables nodes to handle multiple inputs through either socket connections or widget inputs, with configurable minimum and maximum input counts. This eliminates the need for multiple fixed-input node variants or chained node connections, resulting in cleaner workflows and more maintainable code.


Important: Do NOT comment on this PR. Please use the discussion thread linked above to provide feedback, as it provides branched discussions that are easier to follow. This also makes the edit history of the PR clearer.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/rfcs/pull/18 **Author:** [@huchenlei](https://github.com/huchenlei) **Created:** 1/16/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `dynamic_inputs` --- ### 📝 Commits (2) - [`7c342d4`](https://github.com/Comfy-Org/rfcs/commit/7c342d4b3412d2dc45d5003ef8a35f9c0ef869e3) RFC: Variable length node inputs - [`aa9678f`](https://github.com/Comfy-Org/rfcs/commit/aa9678fded31a4fa3b8d9bcd67685671f941c669) nit ### 📊 Changes **1 file changed** (+345 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `rfcs/0000-variable-length-node-inputs.md` (+345 -0) </details> ### 📄 Description ## Summary This RFC proposes adding support for variable-length inputs in ComfyUI nodes, allowing a single node to accept a dynamic number of inputs. The feature introduces a new `var_length` input type configuration that enables nodes to handle multiple inputs through either socket connections or widget inputs, with configurable minimum and maximum input counts. This eliminates the need for multiple fixed-input node variants or chained node connections, resulting in cleaner workflows and more maintainable code. ## Links <!-- Both links below will be automatically filled in when you create the PR. You do not need to modify this section. --> - [Full Rendered Proposal](https://github.com/Comfy-Org/rfcs/blob/dynamic_inputs/rfcs/0000-variable-length-node-inputs.md) - [Discussion Thread](https://github.com/Comfy-Org/rfcs/discussions/19) <!-- Optional: Include any additional links to related issues or resources below --> --- **Important: Do NOT comment on this PR. Please use the discussion thread linked above to provide feedback, as it provides branched discussions that are easier to follow. This also makes the edit history of the PR clearer.** --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/rfcs#13
No description provided.