Skip to content

Conversation

@huchenlei
Copy link

@huchenlei huchenlei commented Jan 8, 2025

Summary

This RFC proposes a new format for handling widget values in ComfyUI workflows by integrating them directly into the node inputs array instead of storing them in a separate widgets_values array. The new format improves type safety, maintainability, and self-documentation of workflows by making each widget value a named, typed input with explicit metadata. This change will require a version bump in the workflow schema from 1.0 to 2.0, but includes backward compatibility measures to ensure a smooth transition for existing workflows and custom nodes.

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.

@yoland68
Copy link
Member

@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-02: Workflow JSON Widget Values Format RFC: Workflow JSON Widget Values Format Jan 16, 2025
@shiroanon
Copy link

Will REST api format change too?

@christian-byrne christian-byrne 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 May 19, 2025
@robinjhuang robinjhuang merged commit 3822146 into main Jun 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.

6 participants