Fix the Prune worktrees palette row and scope it to the current channel #55

Merged
pedromcaraujo merged 1 commit from prune-current-channel into main 2026-11-09 06:28:43 +00:00

The palette's Prune worktrees row rendered as #undefined: the renderer had no case for wt-prune, so it fell through to the channel branch.

  • Render it like the other worktree actions (badge + label).
  • Always offer it in a worktree-enabled channel (same rule as Create worktree), instead of only when some worktree exists.
  • Scope it to the current channel: /worktrees/prune now takes a required channel, validated with _channel(). Safety rules unchanged — dry run + confirm, never forces, skips dirty / busy / current sessions, branches kept.
  • README, shell help and sidecar docstring updated.

Follow-up to #54.

Test plan

  • After deploy, the palette shows "Prune worktrees (close clean ones in #)" in a worktree-enabled channel
  • Prune only lists/closes worktrees of the current channel
The palette's *Prune worktrees* row rendered as `#undefined`: the renderer had no case for `wt-prune`, so it fell through to the channel branch. - Render it like the other worktree actions (badge + label). - Always offer it in a worktree-enabled channel (same rule as *Create worktree*), instead of only when some worktree exists. - Scope it to the current channel: `/worktrees/prune` now takes a required `channel`, validated with `_channel()`. Safety rules unchanged — dry run + confirm, never forces, skips dirty / busy / current sessions, branches kept. - README, shell help and sidecar docstring updated. Follow-up to #54. ## Test plan - [ ] After deploy, the palette shows "Prune worktrees (close clean ones in #<channel>)" in a worktree-enabled channel - [ ] Prune only lists/closes worktrees of the current channel
Fix the Prune worktrees palette row and scope it to the current channel
All checks were successful
CI / check (pull_request) Successful in 35s
b3d0c65e4c
The palette renderer had no case for wt-prune, so the row fell through to
the channel branch and showed as "#undefined". It now renders like the
other worktree actions, is always offered in a worktree-enabled channel,
and prunes only that channel's clean worktrees: /worktrees/prune takes a
required channel.
pedromcaraujo deleted branch prune-current-channel 2026-11-09 06:28:44 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pedromcaraujo/forge!55
No description provided.