Skip to content

Conversation

@tlennon-ie
Copy link

Summary

This PR fixes a frontend bug in the RGTHREE custom nodes where the "Fast Actions" button and the "Fast Groups" widgets would not reliably toggle group enable/bypass state (the button seemed to toggle only once or behave directionally). The issue was caused by a mix of:

  • reading widget boolean state from widget.value (an object) instead of the FastGroupsToggleRowWidget boolean accessor widget.toggled,
  • and not always letting nodes handle their own action via handleAction, which can lead to stale UI widget state unless a recompute/refresh is run afterwards.

Changes

  • Normalize widget boolean reads (use widget.toggled if present, fallback to widget.value) in fast_groups_muter.js.
  • Prefer calling node.handleAction(action) from the Fast Actions button if the node implements it. After calling handleAction, force a widget refresh and schedule the fast-groups service recompute to ensure UI state and internal group caches are synchronized.

Files changed

  • custom_nodes/rgthree-comfy/web/comfyui/fast_groups_muter.js
  • custom_nodes/rgthree-comfy/web/comfyui/fast_actions_button.js

Testing

  • Manual: Verified locally that Toggle/Enable/Bypass now flips groups back-and-forth reliably with toggleRestriction = "always one".
    See gif animation of the button working on latest comfyui version as of today

brave_GKbr9RIbdK

- normalize widget boolean reads to use widget.toggled when present
- prefer node.handleAction(action) for virtual actions and refresh widgets/service after
- add sync scheduling to ensure UI state updates after programmatic changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant