Skip to content

[bugfix] canvas: preserve connections when duplicating nodes - #554

Merged
FayeSpica merged 1 commit into
ThinkFlowLab:mainfrom
FayeSpica:fix/canvas-duplicate-connections
Nov 28, 2026
Merged

FayeSpica merged 1 commit into
ThinkFlowLab:mainfrom
FayeSpica:fix/canvas-duplicate-connections

Conversation

@FayeSpica

Copy link
Copy Markdown
Collaborator

Summary

Duplicating a canvas node now keeps its incoming connections and adds outgoing connections when the destination accepts them. For a multi-node selection, internal connections link the copies. Video copies retain their first- and last-frame assignments.

Linked issue

No issue applies.

  • Fixes #N or Refs #N is included, or no issue applies

Labels

  • Labels applied

Test plan

  • Local: node --test tests/canvasOperations.test.ts, npm run build, and the isolated Chrome checks below passed.
  • Left to CI: the repository-wide checks on this PR.

Evidence that it works

In an isolated Chrome project, duplicate a connected source and a connected target, then reopen the project. Both copies retain their saved connections. The first/last-frame browser regression checks that each copied reference retains its source image and role.

  • Media attached, or N/A because:

Provider verification

The checks used local fixtures. No provider calls were made.

  • Real-provider calls are described honestly, or none were made

Bilingual UI

  • Both locales are updated, or no user-facing copy changed

Signed-off-by: Weiming Liao <liaowm5@gmail.com>
@FayeSpica FayeSpica added type:bug Something is broken area:canvas Canvas, nodes and direct manipulation labels Nov 28, 2026
@FayeSpica
FayeSpica merged commit b834c01 into ThinkFlowLab:main Nov 28, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:canvas Canvas, nodes and direct manipulation type:bug Something is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant