()
| 192 | subtitle = 'You are working in a worktree. Keep it to continue working there, or remove it to clean up.'; |
| 193 | } |
| 194 | function handleCancel() { |
| 195 | if (onCancel) { |
| 196 | // Abort exit and return to the session |
| 197 | onCancel(); |
| 198 | return; |
| 199 | } |
| 200 | // Fallback: treat Escape as "keep" if no onCancel provided |
| 201 | void handleSelect('keep'); |
| 202 | } |
| 203 | const removeDescription = hasUncommitted || hasCommits ? 'All changes and commits will be lost.' : 'Clean up the worktree directory.'; |
| 204 | const hasTmuxSession = Boolean(worktreeSession.tmuxSessionName); |
| 205 | const options = hasTmuxSession ? [{ |
nothing calls this directly
no test coverage detected