You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[fix] Atomicity and collision handling in rename and duplicate (#171) (#187)
* [fix] Rollback worktree on rename branch failure; guard duplicate collision
B5: RenameWorktree now attempts to move the worktree back to its original
path when git branch -m fails. If rollback succeeds the error surfaces
"moved back" plus the retry hint; if rollback itself fails the error
includes the rollback failure and a full manual-recovery command.
B6: The branch and path collision checks in duplicate were already in
place; this commit adds the missing test coverage — a unit test for the
worktree-path collision path (branch absent, directory present) and an
e2e test for `duplicate --as <existing-task>`.
Closes#171
* [fix] Address review feedback: resolver-derived path + remove dead assertion
- cmd/duplicate_test.go: derive worktree path via resolver.WorktreePath
instead of hardcoded DirName-derived string so the test stays resilient
to future DirName changes
- tests/e2e/rename_test.go: remove dead `_ = newBranch` suppression
(newBranch is already used to compute newPath which is asserted)
0 commit comments