surface a session's blocked work before the kill is attempted #83

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

With #79 in place a kill can be refused, and without any prior signal that refusal is a surprise every time — the operator presses kill, gets told no, and has to go find out why.

Session gains an indicator of blocked work, refreshed by the same watcher that maintains activity: whether the worktree currently holds anything that would block a kill, and a short summary of it. Clients render it on the session row and warn on the kill action, so "this will be refused" is visible before the attempt rather than after.

Recomputing it costs git probes per session per tick, so it needs the same treatment as the rest of the watcher: cheap checks, and no probe at all for a session with no worktree.

This issue is the one to cut if the milestone needs to be smaller — everything else works without it, just less kindly.

Depends on: #79

With #79 in place a kill can be refused, and without any prior signal that refusal is a surprise every time — the operator presses kill, gets told no, and has to go find out why. `Session` gains an indicator of blocked work, refreshed by the same watcher that maintains `activity`: whether the worktree currently holds anything that would block a kill, and a short summary of it. Clients render it on the session row and warn on the kill action, so "this will be refused" is visible before the attempt rather than after. Recomputing it costs git probes per session per tick, so it needs the same treatment as the rest of the watcher: cheap checks, and no probe at all for a session with no worktree. This issue is the one to cut if the milestone needs to be smaller — everything else works without it, just less kindly. Depends on: #79
naps62-yolo added this to the Worktree lifecycle milestone 2026-08-24 09:38:48 +01:00
naps62-yolo added the area/daemonarea/webarea/tuidifficulty/mediumtype/feat labels 2026-08-24 09:38:48 +01:00
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Reference: naps62/maestro#83