Skip to content

Avoid worktree removal when threads share a worktree path#86

Merged
SDSLeon merged 1 commit into
masterfrom
lightcode/sunny-willow-26f478a1
Jun 1, 2026
Merged

Avoid worktree removal when threads share a worktree path#86
SDSLeon merged 1 commit into
masterfrom
lightcode/sunny-willow-26f478a1

Conversation

@SDSLeon

@SDSLeon SDSLeon commented May 31, 2026

Copy link
Copy Markdown
Owner

Type: Bugfix

  • Deleting a thread that shares a worktree with others no longer offers worktree removal or deletes sibling threads still using that path.
  • With the “delete thread and worktree” preference, only the selected thread is removed and the worktree is dropped when it is the last thread on that path.
  • Sole-thread deletes still show the worktree removal dialog when no preference is saved.
  • Tests cover shared-worktree deletion, sole-thread prompting, and worktree removal after the thread closes.

- Delete only the requested thread when siblings use the same worktree
- Stop cascading sibling deletes on thread-and-worktree preference
- Add deleteThread tests for shared path, dialog, and close ordering
@vercel

vercel Bot commented May 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightcode-landing Ready Ready Preview, Comment May 31, 2026 8:18am

@SDSLeon SDSLeon merged commit 35e7763 into master Jun 1, 2026
6 checks passed
@SDSLeon SDSLeon deleted the lightcode/sunny-willow-26f478a1 branch June 1, 2026 01:17
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.

1 participant