Repository navigation
Conversation
Mark prune as [experimental]. Print candidates progressively as they're discovered instead of buffering all output. Handle per-candidate errors gracefully (warn and skip) rather than aborting the entire prune — dirty worktrees are now caught by the same ensure_clean check that wt remove uses. Co-Authored-By: Claude <[email protected]>
# Conflicts: # src/commands/step_commands.rs # tests/integration_tests/step_prune.rs
Remove candidates as they're discovered instead of collecting then removing in a second pass. Approve hooks upfront, defer current worktree to last. Candidate listing only appears in dry-run mode. Drop "Worktrees with uncommitted changes are skipped" (inherited from wt remove) and "Note: experimental" (redundant with [experimental] tag) from help text. Co-Authored-By: Claude <[email protected]>
worktrunk-bot
left a comment
Collaborator
There was a problem hiding this comment.
Minor suggestion on prune_summary — otherwise this looks good.
worktrunk-bot
approved these changes
Feb 28, 2026
Remove unnecessary Borrow bound — both call sites pass &[Candidate] directly. Co-Authored-By: Claude <[email protected]>
worktrunk-bot
approved these changes
Feb 28, 2026
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
wt step pruneas[experimental]ensure_cleancheck thatwt removeuses○lines; actual removal only shows◎ Removingoutputwt remove; "Note: experimental" is redundant with[experimental]tag)Test plan
wt hook pre-merge --yes)wt step prune --dry-runon a repo with merged worktrees