Skip to content

Fix "Dragging from input slot connected to SubgraphInputNode creates new link instead of moving existing one"#1184

Merged
benceruleanlu merged 4 commits intomasterfrom
bl-fix-dragging
Aug 2, 2025
Merged

Fix "Dragging from input slot connected to SubgraphInputNode creates new link instead of moving existing one"#1184
benceruleanlu merged 4 commits intomasterfrom
bl-fix-dragging

Conversation

@benceruleanlu
Copy link
Member

@benceruleanlu benceruleanlu commented Aug 1, 2025

this PR adds a special check for SUBGRAPH_INPUT_ID because of incompatabilities with it being a virtual node.

maybe we can add a cleaner support for this later, but it does fix the issue for now.

Screen.Recording.2025-08-01.033515.mp4

fixes #1170
also, #1182 might need to go in first, this branched off of that

@christian-byrne
Copy link
Contributor

Can you resolve conflicts and rebase? BTW you should try making the 2nd PR target the 1st PR, then when the 1st is merged the base branch will be automatically switch for you by GitHub.

@benceruleanlu
Copy link
Member Author

then when the 1st is merged the base branch will be automatically switch for you by GitHub.

wow never knew that, awesome info

@christian-byrne
Copy link
Contributor

christian-byrne commented Aug 2, 2025

Would like to release new version tonight let me know if you need help rebasing. I will rebase!

benceruleanlu and others added 4 commits August 1, 2025 21:26
- Add existingLink tracking to ToInputFromIoNodeLink
- Dispatch 'input-moved' event when moving existing links
- Use listenUntilReset for deferred disconnect (prevents link loss on cancelled drags)
- Update event type definitions to support ToInputFromIoNodeLink

This ensures subgraph input links behave consistently with regular node links when dragging.

Co-Authored-By: Claude <noreply@anthropic.com>
@benceruleanlu benceruleanlu merged commit a568c06 into master Aug 2, 2025
4 checks passed
@benceruleanlu benceruleanlu deleted the bl-fix-dragging branch August 2, 2025 04:56
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.

[Bug] Dragging from input slot connected to SubgraphInputNode creates new link instead of moving existing one

2 participants