kill --force ends the session and retains the worktree #81

Closed
opened 2026-08-24 09:38:48 +01:00 by naps62-yolo · 0 comments
Collaborator

The kill refusal from #79 needs an override, or a session whose work the operator has deliberately abandoned can never be ended.

--force overrides the refusal and nothing else. It kills the session and retains the worktree, which enters the store (#78) with reason force-killed. Force never removes a tree that would have blocked.

Settled deliberately: force is not "force everything". Ending a session and destroying its work are two separate destructive acts, and each should be chosen on its own. Reclaiming the tree afterwards (#80) is the second one, taken while looking at exactly what is in the way.

Surface it as a flag on DELETE /api/sessions/:id and as maestro kill --force. A forced kill returns what was retained and why, so a client can say where the work went rather than leaving the operator to wonder.

Depends on: #78, #79

The kill refusal from #79 needs an override, or a session whose work the operator has deliberately abandoned can never be ended. `--force` overrides the *refusal* and nothing else. It kills the session and **retains** the worktree, which enters the store (#78) with reason `force-killed`. Force never removes a tree that would have blocked. Settled deliberately: force is not "force everything". Ending a session and destroying its work are two separate destructive acts, and each should be chosen on its own. Reclaiming the tree afterwards (#80) is the second one, taken while looking at exactly what is in the way. Surface it as a flag on `DELETE /api/sessions/:id` and as `maestro kill --force`. A forced kill returns what was retained and why, so a client can say where the work went rather than leaving the operator to wonder. Depends on: #78, #79
naps62-yolo added this to the Worktree lifecycle milestone 2026-08-24 09:38:48 +01:00
naps62-yolo added the area/cliarea/daemonarea/protocoldifficulty/mediumtype/feat labels 2026-08-24 09:38:48 +01:00
naps62-yolo added a new dependency 2026-08-24 09:39:00 +01:00
naps62-yolo added a new dependency 2026-08-24 09:39:01 +01:00
naps62-yolo added a new dependency 2026-08-24 09:39:01 +01:00
naps62-yolo added a new dependency 2026-08-24 09:39:01 +01:00
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Reference: naps62/maestro#81