Commit Graph
13 Commits
Author SHA1 Message Date
Regis Gaughan, III 218d6347da Merge pull request #799 from unclehooru/fix-clone-disconnects-original
Fix copy/clone disconnecting links on the original node
2026-10-27 23:37:01 -04:00
unclehooruandClaude Code 2f6b4a72c5 Fix copy/clone disconnecting links on the original node
On ComfyUI frontend 1.53.1+ (after the ECS migration), slot links are
resolved from the graph's link store by (graph, node id, slot) instead
of `input.link`. A cloned node keeps the original's id, and
RgthreeBaseNode.clone() attached the original graph to the clone as a
workaround for ComfyUI_frontend#5037. As a result:

- BaseAnyInputConnectedNode.clone() trimming extra inputs with
  removeInput() disconnected input slots 1+ of the ORIGINAL node
  (Fast Bypasser/Muter, Mute/Bypass Repeater/Relay, Random Unmuter,
  Node Collector, Fast Actions Button) on single-node copy, clone,
  duplicate, alt+drag clone and "Save Selected as Template".
- DynamicContextNodeBase.clone() also cut the original's outputs 1+.
- The graph-attached clone serialized the original's link ids.

Trim the clone's slot arrays directly (they carry no links) and stop
attaching the graph to clones, so clones behave like stock clones.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-27 22:03:22 +09:00
rgthree 9be2d6a451 Finally get to update frontend types to latest. Should be a no-op. 2026-10-26 14:27:07 -04:00
rgthree 006cb572fa Fix fast muter/bypasser connections andsome other subgraph support. Fixes #558 2025-08-16 14:14:49 -04:00
rgthree 20f3c0e4ef Update comfy ui frontend types after manually changing typedefs to export what we need. 2025-08-16 01:21:43 -04:00
rgthree f044a9dbb3 Adds the comfyorg/comfyui-frontend-types to the codebase. 2025-03-29 14:49:35 -04:00
rgthree d10b7c87f4 Pull in actual litegraph.js types, replacing rgthree-comfy version. 2025-03-28 22:48:42 -04:00
rgthree e6ae355bb8 Only mark dirty during widget stabilization if something has changed. Addresses #397 2024-12-14 13:50:26 -05:00
rgthree 2c8ddf29ea Cleanup for settings up virtual nodes 2024-07-30 22:03:26 -04:00
rgthree 2613da28c6 better import handling and formatting pass. 2024-07-24 23:55:32 -04:00
rgthree d8ea2cb90f Set a comfyClass on rgthree-comfy virtual nodes (fixes other extensions' ), and some additional cleanup. Addresses #202 and #203 2024-04-19 23:29:33 -04:00
rgthree 59d6fc49e0 Separate a common directory, and fix typescript paths. 2024-01-18 23:28:18 -05:00
rgthree ce277c8c54 rename web source directory. 2024-01-12 22:11:39 -05:00