Skip to content

Fix session close not deleting worktree branch#19

Merged
Umaaz merged 1 commit into
mainfrom
lucid-dove
Apr 4, 2026
Merged

Fix session close not deleting worktree branch#19
Umaaz merged 1 commit into
mainfrom
lucid-dove

Conversation

@Umaaz

@Umaaz Umaaz commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • When closing a worktree session with "Close & Delete Worktree", the git branch was left behind as an orphan
  • Now deletes the associated branch (force delete) after removing the worktree directory, matching the behavior already in BranchesView

Test plan

  • Open a worktree session
  • Close it via "Close & Delete Worktree"
  • Verify the worktree directory is removed AND the branch is deleted

🤖 Generated with Claude Code

When closing a worktree session with "Close & Delete Worktree", only the
worktree directory was removed but the git branch was left behind. Now
also deletes the associated branch after removing the worktree.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Umaaz Umaaz enabled auto-merge April 4, 2026 19:23
@Umaaz Umaaz merged commit 4f54bf9 into main Apr 4, 2026
3 checks passed
@Umaaz Umaaz deleted the lucid-dove branch April 4, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants