[Feature Request] Add merge verification option to ExitWorktree for safe worktree cleanup without data loss

Resolved 💬 1 comment Opened May 27, 2026 by HazelSh Closed Jun 28, 2026

Bug Description
ExitWorktree has two options: keep the tree around forever, or discard it and get data loss warnings. I / my Claudes need a third option: verify that this worktree's commits have been merged back into main, and then close the worktree having checked that data is not being lost. I'm doing local solo development, and features do not go through github or equiv. I want to be able to call an agent's feature complete and drop the worktree and context, but the current tooling doesn't support this workflow at all. See my conversation with Opus4.7 for more context.

Environment Info

  • Platform: linux
  • Terminal: xterm-256color
  • Version: 2.1.150
  • Feedback ID: 8d32332b-2635-4876-8e29-c7530c74dac6

Errors

[]

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗