End a worker that lingers after its final result by stopping the quiet background shells it left
CI / tests (pull_request) Failing after 4m10s

This commit is contained in:
2026-11-18 16:53:30 +01:00
parent aa34fb8912
commit 72ffb9f748
9 changed files with 272 additions and 15 deletions
+5
View File
@@ -48,6 +48,11 @@ failure, keeps its window, with its last lines, and its chunk keeps its items; t
claude session is named "A <key> loop-claude <window>", so a rerun resumes a chunk left open, and is
deleted when the chunk finishes. A fresh worker is told the items the project's other chunks hold,
running or stopped: each one's own and those on its latest `Chunk items:` line, and leaves them out.
A worker whose claude printed its final result and still waits on a background shell that has
written nothing for 3 minutes loses that shell, found at the next 5-minute check. A shell that
writes, or holds a run-heavy slot, keeps the worker alive. Each stop is printed and appended to
lingering-workers.md in the project's transcript archive
(bin/loop_claude/cycle/lingering_workers.py).
A question only the human can answer is an interrupt (bin/loop_claude/cycle/interrupt.py).
loop-claude prints the question in the chunk's window and rings its bell. Until it is answered the