fix: remint clip alias on paste to avoid duplicate alias errors - #188
Merged
Merged
Conversation
Paste previously stripped id but kept alias, so resolve threw on Duplicate alias. Remint via generateAlias in pasteClip, addClipFromJson, and addTracksFromJson.
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 16, 2026
## [2.19.6](v2.19.5...v2.19.6) (2026-09-16) ### Bug Fixes * remint clip alias on paste to avoid duplicate alias resolve errors ([#188](#188)) ([a404f88](a404f88))
|
🎉 This PR is included in version 2.19.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Pasting a clip (internal clipboard or OS clip JSON) stripped
idbut keptalias. Resolve then threwDuplicate alias "…" foundwhen the source clip was still on the timeline. Same failure mode for user aliases (e.g.VOICEOVER) and autosource_*aliases.Fix
Always remint paste identity when an alias is present: clear the source id, mint a new id, and set
aliasvia existinggenerateAlias. Applied in:pasteClip(selection manager)addClipFromJson/addTracksFromJson(OS clipboard paste paths)Non-paste add/update paths are unchanged.
Verify
Manual:
npm run dev, copy an aliased clip, paste at playhead — paste succeeds; original alias unchanged; pasted clip gets a newsource_*alias.Risk
Low. Paste-only. Clips without aliases behave as before (id stripped only). Pasted aliased clips no longer keep the source alias name (they get a fresh
source_*), which is intentional to avoid collisions.