Skip to content

feat: add confirmation dialog to task kill command#96

Merged
bborn merged 1 commit intomainfrom
task/179-task-kill-command
Jan 10, 2026
Merged

feat: add confirmation dialog to task kill command#96
bborn merged 1 commit intomainfrom
task/179-task-kill-command

Conversation

@bborn
Copy link
Copy Markdown
Owner

@bborn bborn commented Jan 10, 2026

Summary

  • Add confirmation dialog before killing a task session (pressing k in detail view)
  • On kill confirmation: interrupt task (set status to backlog), log the kill action, and terminate the tmux window
  • The kill command now properly stops the Claude process and updates the task status, rather than just closing the tmux window UI

Changes

  • Add ViewKillConfirm view state and Kill key binding (k)
  • Add showKillConfirm, viewKillConfirm, updateKillConfirm functions for confirmation flow
  • Add killTask function that interrupts the task and kills the tmux window
  • Add taskKilledMsg message type for handling kill completion
  • Clean up detail view panes before executing kill
  • Remove direct k key handling from detail.go (now handled at app level with confirmation)

Test plan

  • Start a task that creates a Claude session
  • Press k in detail view - should show kill confirmation dialog
  • Cancel the dialog with Escape - should return to detail view without killing
  • Press k again and confirm - should kill session and move task to backlog
  • Verify the task log shows "→ [Kill] Session terminated"
  • Verify the tmux window for the task is closed

🤖 Generated with Claude Code

- Add ViewKillConfirm view state and Kill key binding (k)
- Show confirmation dialog before killing a task session
- On kill confirmation: interrupt task (set status to backlog), log
  the kill action, and terminate the tmux window
- Clean up detail view panes before executing kill
- Remove direct k key handling from detail.go (now handled at app level)

The kill command now properly stops the Claude process and updates the
task status, rather than just closing the tmux window UI.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bborn bborn force-pushed the task/179-task-kill-command branch from 35d23dc to d009015 Compare January 10, 2026 14:00
@bborn bborn merged commit 98d743e into main Jan 10, 2026
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