Commit Graph
33 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
unclehooru 8863b9e658 Move prototype accessor lookup into shared_utils as a generic helper 2026-10-05 17:05:16 +09:00
unclehooru 10f3769d37 Merge remote-tracking branch 'upstream/main' into fix-mode-state-restore 2026-10-05 15:51:23 +09:00
rgthree 16e329820f Update package deps and types; fix broken types, even if still not the latest comfyu typings... 2026-10-05 00:29:21 -04:00
unclehooru 20cdd32604 Keep _state.mode in sync when overriding mode in RgthreeBaseNode 2026-10-01 22:51:24 +09:00
rgthree 13b4399c00 Update some of the types, though can't go to current b/c of comfy npm bugs. 2026-08-21 00:19:33 -04:00
rgthree e5b2772686 Switch back to non-comfyUI removeWidget to fix power primitive textarea sticking even when not a string type. 2025-08-18 23:34:03 -04:00
rgthree 454e645b74 Fast Groups Muter/Bypasser now works with subgraphs; Fix group quick actions in subgraphs; some other subgraph cleanup too. 2025-08-16 13:58:54 -04:00
rgthree 9bbb1aced5 Add back in original removeWidget implementation as ComfyUI's new one isn't available yet. Fixes #559 2025-08-16 11:13:31 -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 5a0ce4f4ee New Node: Power Primitive. 2025-05-10 21:56:42 -04:00
rgthree b84f39c7c2 Don't return menu options when splicing despite bad typing. Fixes #462 2025-04-06 21:41:47 -04:00
rgthree d37740b0db Pull some changes from dev to main 2025-03-29 21:09:49 -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 ab37a0bd37 Cleanup debugging wrapper. 2025-03-17 21:10:55 -04:00
rgthree 4c87142dda Handle change in ComfyUI widget config dropping minWidth/minHeight. Fixes #443 2025-03-17 21:08:16 -04:00
rgthree 206a6fac41 Handle breaking changes in LGraphNode that unow that uses defineProperty. Fixes #349 and #351 2024-10-11 21:20:17 -04:00
rgthree 71ed4c4296 Add rgthree-comfy buttons to the top bar, and better capture key events now that Comfy has UI outside of LiteGraph. Other cleanup + fixes too. Fixes #286 2024-08-03 15:26:47 -04: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 be08b0f875 New Feature: Import a single node's widgets' values on drag & drop. Off by default. 2024-06-19 21:58:37 -04:00
rgthree 2db6c4d73a When a relay has no inputs connected, use its own mode change as the relay signal. 2024-05-04 21:31:07 -04:00
rgthree 78539735e8 Check if we're constructed before calling onConstructed to avoid duplicate work in child classes. 2024-04-20 14:01:08 -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 db062961ed Refactor a bunch around server nodes to allow extensions to call nodeCreated since rgthree-comfy purposefully avoids the ComfyNode. Also cleans up logging. Addresses #194 2024-04-15 22:29:50 -04:00
rgthree 1d0e426418 New Node: Power Lora Loader! 2024-04-06 22:50:08 -04:00
rgthree 551892bea6 Establishes configuration server endpoints and front end UI for toggling various config; including the execution optimization which no longer requires restart to toggle. 2024-01-24 22:16:13 -05:00
rgthree 59d6fc49e0 Separate a common directory, and fix typescript paths. 2024-01-18 23:28:18 -05:00
rgthree 77a5f8faab Deep clone node properties on clone. Fixes #114 2024-01-15 15:09:15 -05:00
rgthree ce277c8c54 rename web source directory. 2024-01-12 22:11:39 -05:00