emdash icon indicating copy to clipboard operation
emdash copied to clipboard

Feature: Prompt to archive/delete worktree after merging

Open arnestrickmann opened this issue 8 months ago • 3 comments

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 avatar Mar 07 '26 00:03 arnestrickmann

@arnestrickmann let me pick this up if nobody has

prath47 avatar Mar 07 '26 21:03 prath47

Thanks! @prath47

arnestrickmann avatar Mar 09 '26 17:03 arnestrickmann

Duplicates #766

QuinnBast avatar May 21 '26 16:05 QuinnBast