Skip to content

feat(tui): add full delete option to archive task modal#48

Merged
HonestMajority merged 1 commit intomainfrom
fully-delete
Feb 25, 2026
Merged

feat(tui): add full delete option to archive task modal#48
HonestMajority merged 1 commit intomainfrom
fully-delete

Conversation

@HonestMajority
Copy link
Copy Markdown
Owner

Adds a third option — Delete — to the archive/remove task confirmation modal (d key). This performs a full, immediate, permanent deletion: kills tmux sessions, removes worktrees, deletes branches, and removes the task directory in one step.

Useful for throwaway tasks (e.g., from the review flow) where the archive-then-purge lifecycle is unnecessary overhead.

  • New use_cases::fully_delete_task function that reuses existing Git::remove_worktree, Git::delete_branch, and task.delete() primitives
  • Modal expanded to 3 options (Archive / Archive & Save / Delete) with the delete option styled in red to signal destructiveness
  • Modal title changed from "Archive Task" to "Remove Task" to reflect the broader scope

🤖 Generated with Claude Code

Add a third "Delete" option (index 2) to the archive confirmation modal
that performs immediate, permanent deletion — removing worktrees, branches,
and task files in one step. Useful for review-flow tasks that hold no
valuable context after completion.

- New `use_cases::fully_delete_task` combining worktree removal, branch
  deletion, and task directory removal
- New `App::fully_delete_task` TUI wrapper with tmux cleanup
- Modal updated to 3 options with reddish styling for the destructive option
- Modal title changed from "Archive Task" to "Remove Task"
- Happy-path test for the new use case

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@HonestMajority HonestMajority merged commit a3c2c3d into main Feb 25, 2026
1 check passed
@HonestMajority HonestMajority deleted the fully-delete branch February 25, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant