Skip to content

Add stale worktree pruning to sidebar#337

Merged
BunsDev merged 2 commits into
mainfrom
okcode/cleanup-sidebar-prune
Apr 7, 2026
Merged

Add stale worktree pruning to sidebar#337
BunsDev merged 2 commits into
mainfrom
okcode/cleanup-sidebar-prune

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented Apr 7, 2026

Summary

  • Added a new sidebar entry to open the worktree cleanup dialog directly from the main navigation.
  • Expanded the worktree cleanup dialog with merged-age labels, PR links, and a bulk action to prune all stale worktree records.
  • Prevented the review subpage shell from scrolling independently so the layout stays anchored and predictable.
  • Added unit coverage for the new branch-age formatter in worktreeCleanup.ts.

Testing

  • Not run (per request).
  • Existing test coverage updated in apps/web/src/worktreeCleanup.test.ts for formatBranchAge.
  • No manual UI verification was performed in this turn.

- Add a sidebar entry to open worktree cleanup
- Show merged PR links and merge age in the dialog
- Add bulk prune for stale records and cover age formatting
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 7, 2026

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

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Apr 7, 2026 5:02am
v0-compute-the-platform-to-build Ready Ready Preview, Open in v0 Apr 7, 2026 5:02am

* Fix desktop build and runtime cleanup

- Harden screenshot image loading cleanup
- Simplify thread snapshot hydration and sidebar props
- Fix widget notification event typing and test rename

* Prune merged worktrees after thread cleanup (#335)

* Clean up merged worktrees after thread deletion

- Add merged worktree candidate detection and prune support
- Auto-remove orphaned worktrees after merged thread cleanup
- Surface cleanup state through the web client and WS contract

* Add merged worktree cleanup dialog

- Add a command-palette entry to review merged worktrees
- Let users delete on-disk worktrees or prune stale Git records
- Wire the dialog into the chat route and auto-delete flow

* Improve merged worktree cleanup feedback

- Use the active thread to choose the cleanup project
- Rename prune action for stale records
- Show an error toast when merged thread auto-delete fails

* Format worktree cleanup and prune call

- Reflow worktree cleanup dialog strings and layout
- Reformat Git worktree prune call for consistency

* Simplify merged worktree cleanup handling

- Ignore prune failures silently during worktree cleanup
- Add explicit git operation labels for merged-worktree cleanup calls
@BunsDev BunsDev merged commit ade5c7a into main Apr 7, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 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