Skip to content

Add optional worktree removal confirmation#16

Open
tim-smart wants to merge 2 commits into
t3code/reuse-selected-worktree-branchfrom
t3code/worktree-remove-confirmation
Open

Add optional worktree removal confirmation#16
tim-smart wants to merge 2 commits into
t3code/reuse-selected-worktree-branchfrom
t3code/worktree-remove-confirmation

Conversation

@tim-smart

Copy link
Copy Markdown
Owner

Summary

  • Add a client setting to control confirmation before removing an orphaned worktree.
  • Allow immediate worktree removal when confirmation is disabled while preserving in-use worktrees.
  • Expose the setting in General Settings with reset and restore-default support.
  • Default confirmation to enabled for existing settings.

Testing

  • Added unit coverage for worktree removal action selection.
  • Added contract tests for the default value and settings patch decoding.
  • Updated the desktop client settings fixture for the new field.
  • Not run (test execution not provided).

@tim-smart
tim-smart force-pushed the t3code/worktree-remove-confirmation branch 3 times, most recently from cc69816 to 5e2253c Compare July 24, 2026 03:34
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Jul 24, 2026
@tim-smart
tim-smart changed the base branch from main to t3code/reuse-selected-worktree-branch July 24, 2026 03:34
@tim-smart
tim-smart force-pushed the t3code/worktree-remove-confirmation branch from 5e2253c to 456533b Compare July 24, 2026 03:46
@github-actions github-actions Bot added size:M and removed size:XXL labels Jul 24, 2026
@tim-smart
tim-smart force-pushed the t3code/reuse-selected-worktree-branch branch from d6104be to f9630af Compare July 24, 2026 04:10
@tim-smart
tim-smart force-pushed the t3code/worktree-remove-confirmation branch from 456533b to 3e5e38a Compare July 24, 2026 04:10
@tim-smart
tim-smart force-pushed the t3code/reuse-selected-worktree-branch branch from f9630af to db5e35a Compare July 24, 2026 08:52
@tim-smart
tim-smart force-pushed the t3code/worktree-remove-confirmation branch 2 times, most recently from 86b5104 to 651104e Compare July 24, 2026 09:00
@tim-smart
tim-smart force-pushed the t3code/reuse-selected-worktree-branch branch from db5e35a to 0b9f9b2 Compare July 24, 2026 09:00
@github-actions
github-actions Bot force-pushed the t3code/reuse-selected-worktree-branch branch from 0b9f9b2 to d4f7f20 Compare July 24, 2026 09:40
@github-actions
github-actions Bot force-pushed the t3code/worktree-remove-confirmation branch 2 times, most recently from 756d4f8 to 34507a7 Compare July 24, 2026 14:12
@github-actions
github-actions Bot force-pushed the t3code/reuse-selected-worktree-branch branch from d4f7f20 to 19a6edb Compare July 24, 2026 14:12
- Allow users to bypass confirmation when deleting an orphaned worktree
- Default confirmation to enabled and expose it in general settings
@tim-smart
tim-smart force-pushed the t3code/worktree-remove-confirmation branch from 34507a7 to c3f509f Compare July 25, 2026 10:26
@tim-smart
tim-smart force-pushed the t3code/reuse-selected-worktree-branch branch from 19a6edb to 2d3900b Compare July 25, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant