Feature: Prompt to archive/delete worktree after merging
Feature Request
Description After successfully merging a task's changes (merge into main or PR merge), prompt the user to archive/delete the worktree. This closes the loop on completed tasks without requiring the user to manually clean up.
Current Behavior
After merging, the worktree and task remain in the sidebar as if still active. The user has to manually navigate to delete/archive it.
Expected Behavior
After a successful merge, show a prompt — ideally rendered directly in the merge button area — offering to archive the worktree and clean up:
- Archive/delete the worktree
- Redirect the user to the Home view
- Same behavior as clicking the delete button directly
Proposed UX
- Render the archive prompt inline in the button (not a separate modal)
- A subtle nudge style — e.g., the merge button transforms into an "Archive task" button after merge completes
- One click to clean up, keeping the flow seamless
Why This Matters
Completed tasks cluttering the sidebar adds noise. A gentle nudge to archive right after merging keeps the workspace clean with zero extra navigation. This is a natural moment in the workflow where cleanup makes sense.
@arnestrickmann let me pick this up if nobody has
Thanks! @prath47
Duplicates #766