Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: Litegraph Native Reroute #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

RFC: Litegraph Native Reroute #6

wants to merge 2 commits into from

Conversation

huchenlei
Copy link
Member

@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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pending When the RFC is still in comments phase rfc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants