[Phase 4] Add --timeout flag to cmd_destroy #239

Closed
opened 2026-04-08 06:30:38 +02:00 by shoko · 0 comments
Owner

Problem

Timeout handling for sessions is currently done inside the queue-daemon. We need a CLI way to destroy timed-out sessions.

Solution

Add flag to :

    • destroy ALL currently timed-out sessions
  • No issue_ref required when using

Implementation:

  1. Create internal function
  2. When is set, find all queue items with where
  3. For each timed-out item:
    • Kill if exists
    • Stop if exists
    • Remove worktree
    • Delete session file
    • Update queue item to "error"
  4. skips confirmation (always yes for automated --timeout)

Status

BLOCKED - Depends on Phase 1 (help restructure needed to document --timeout flag)

Files

Parent: #235
Blocked by: #236 (Phase 1)

## Problem Timeout handling for sessions is currently done inside the queue-daemon. We need a CLI way to destroy timed-out sessions. ## Solution Add flag to : - - destroy ALL currently timed-out sessions - No issue_ref required when using Implementation: 1. Create internal function 2. When is set, find all queue items with where 3. For each timed-out item: - Kill if exists - Stop if exists - Remove worktree - Delete session file - Update queue item to "error" 4. skips confirmation (always yes for automated --timeout) ## Status **BLOCKED** - Depends on Phase 1 (help restructure needed to document --timeout flag) ## Files - ## Related Issues Parent: #235 Blocked by: #236 (Phase 1)
shoko closed this issue 2026-04-08 06:33:47 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/kugetsu#239