Repository navigation
fix(drag): offer Merge when a moved folder meets a same-named folder - #2078
Merged
Merged
Conversation
Dragging or cutting a folder onto a same-named folder offered Replace but not Merge, because Merge was limited to copies. The adapter already merges moves and only deletes sources it read unchanged, so allow it in the prompt. A merged move deletes its source and adds no Undo entry, so the prompt now says it can't be undone. Refuse Merge where the target holds the source, as when a/Photos/Photos goes into a, for copies as well. Staging the overwritten files would take the source's own files, and they would silently never arrive.
Closed
5 tasks
wmfeht
pushed a commit
to wmfeht/strata-feature-map
that referenced
this pull request
Nov 7, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RQ23ABwwxenbjuWJF4fBP5
wmfeht
pushed a commit
to wmfeht/strata-feature-map
that referenced
this pull request
Nov 7, 2026
…ced originals; advance watermark Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RQ23ABwwxenbjuWJF4fBP5
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.
Description
Dragging a folder onto a same-named folder offered Replace but not Merge, because the conflict prompt limited Merge to copies. A same-filesystem drag is a move, so the only overwrite option discarded the existing folder. The adapter already supports merged moves, including deleting only the sources it read unchanged, so the prompt now offers Merge for moves too. This also applies to cut and paste and to Move To, which share the prompt.
A merged move can't be undone. It deletes its source and adds no Undo entry, as history already did for merged sources, while the originals it overwrites stay in Trash. Ctrl+Z after a merged move therefore undoes the operation before it. The prompt now says so before the choice. This is why Merge was copy-only until now, so please check that you are happy with this trade-off.
Merge is now refused where the target folder holds the source, for copies as well as moves, for example
a/Photos/Photosintoa. Merge staged the overwritten files first, which there included the source's own files, so they silently never arrived and the merge still reported success. Copies could already hit this, and drags would have made it easier to reach.Visual evidence
How to test
a/Photos/one.txtandb/Photos/two.txt.b/Photosintoa, and click Merge in the conflict prompt.c/c/c/same.txtandc/c/same.txt, then dragc/cinto the top folder that holdsc.Expected result: In step 2 the prompt offers Merge and says it can't be undone. Afterwards
a/Photosholds bothone.txtandtwo.txt, andb/Photosis gone. In step 3 the prompt offers Replace and Keep Both but not Merge.Related issue
Closes #2076