Skip to content

Conversation

@huchenlei
Copy link

@huchenlei huchenlei commented Jan 11, 2025

Summary

This RFC proposes replacing ComfyUI's current frontend-only reroute node implementation with a native LiteGraph reroute feature. The new implementation will treat reroutes as link metadata rather than full nodes, providing several benefits:

  • Simpler workflow JSON representation
  • Proper type safety throughout connection chains
  • Elimination of special-case handling for reroute nodes
  • Reduced complexity in workflow structures and graph traversal

This change requires updates to both the workflow schema and LiteGraph.js library, with a migration path provided for existing workflows.

Links


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.

@github-actions github-actions bot added the rfc label Jan 11, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 11, 2025
@huchenlei huchenlei changed the title rfc:litegraph_native_reroute rfc03: litegraph_native_reroute Jan 11, 2025
@huchenlei huchenlei changed the title rfc03: litegraph_native_reroute rfc-03: litegraph_native_reroute Jan 11, 2025
@huchenlei huchenlei changed the title rfc-03: litegraph_native_reroute rfc-03: Litegraph Native Reroute Jan 13, 2025
@christian-byrne christian-byrne added the pending When the RFC is still in comments phase label Jan 14, 2025
@huchenlei huchenlei changed the title rfc-03: Litegraph Native Reroute RFC: Litegraph Native Reroute Jan 16, 2025
@huchenlei huchenlei added active when an RFC is accepted and undergoing implementation. The feature may be shipped as experimental and removed pending When the RFC is still in comments phase labels Mar 22, 2025
@huchenlei huchenlei self-assigned this Mar 22, 2025
@huchenlei huchenlei merged commit c20aad5 into main Mar 22, 2025
@huchenlei huchenlei deleted the rfc_03 branch March 22, 2025 22:59
@christian-byrne christian-byrne restored the rfc_03 branch March 28, 2025 02:08
@christian-byrne
Copy link
Contributor

christian-byrne commented Mar 28, 2025

Make sure to change the URLs if the file is renamed.

I also disabled branch auto-deletion so the rendered proposal is still accessible after merge.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

active when an RFC is accepted and undergoing implementation. The feature may be shipped as experimental rfc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants