Repository navigation
feat: undo and redo reversible file operations - #155
Merged
Merged
Conversation
Rename goes back, a move goes back, an unchanged copy is removed while the original still exists, and Recycle Bin deletes are restored. Every item is checked before anything changes; if the disk changed since the operation, nothing is done and the reason is shown. Permanent deletes, replacements and folder merges are never offered. The engine now reports top-level placed items so merges can never be mistaken for our copies. Co-Authored-By: Claude Opus 5.5 <[email protected]>
nextestudios
force-pushed
the
feature/22-undo-redo
branch
from
September 27, 2026 05:57
cbdd9ac to
f038679
Compare
…ngine Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Summary
IRecycleBin(same original path, deleted during the operation's time window).OperationResult.Placedlists top-level items that arrived as new items (merged folders and replacements are excluded), so undo never treats a merged user folder as our copy.Tests
CI (Windows):
UndoJourneyTests: rename undo restores the old name and redo renames again; move undo brings a folder and a file back, and is refused with a reason (nothing changed) when the original name is taken; copy undo refuses an edited copy and removes only an unchanged "kept both" copy, leaving the original and the edited copy; permanent delete never offers undo; Recycle Bin undo restores (fake bin), redo recycles again, and undo is refused when the name is taken again.FileOperationServiceTests: a folder merged into an existing one is never reported as placed; a kept-both folder is.Manual (docs/TESTING.md): real Windows Recycle Bin restore, cross-drive folder move-back, copy undo on a USB drive.
Closes #22
🤖 Generated with Claude Code