Answer an interrupt on loop-claude's terminal and resume the worker headless with the answer #308

Merged
lilleman merged 15 commits from item-168 into main 2026-10-18 00:03:37 +02:00
Owner

loop-claude now asks an interrupt's question on its own terminal (Answer (/talk opens claude, Enter stops the loop): ) and resumes the worker headless with the one-line answer. It no longer waits for the human to leave a claude session. /talk opens the worker's session with claude --resume, as every interrupt did before, and a release ready to cut (a new judge reply field, release_ready) opens it at once. An empty answer, or the input ending, stops the loop with exit 2. Keys typed before the question are dropped.

The judge renders the typed answer as a [human] line, after the question as a [loop] line, so it holds the chunk open until the answer is recorded. When the interrupt stepped the worker up, the resume prompt names the new rung. judge.py's run_judge now lists its three quote checks in one docstring, and JUDGE_RULES is split into three named parts. The help gives interrupts their own paragraph, with a pointer to bin/loop_claude/cycle/interrupt.py.

Item 168 (L 4, E + I 5). /talk and the answer line were picked by a bench of three readers.

Rule overrides: none.

loop-claude now asks an interrupt's question on its own terminal (`Answer (/talk opens claude, Enter stops the loop): `) and resumes the worker headless with the one-line answer. It no longer waits for the human to leave a claude session. `/talk` opens the worker's session with `claude --resume`, as every interrupt did before, and a release ready to cut (a new judge reply field, `release_ready`) opens it at once. An empty answer, or the input ending, stops the loop with exit 2. Keys typed before the question are dropped. The judge renders the typed answer as a `[human]` line, after the question as a `[loop]` line, so it holds the chunk open until the answer is recorded. When the interrupt stepped the worker up, the resume prompt names the new rung. `judge.py`'s `run_judge` now lists its three quote checks in one docstring, and `JUDGE_RULES` is split into three named parts. The help gives interrupts their own paragraph, with a pointer to `bin/loop_claude/cycle/interrupt.py`. Item 168 (L 4, E + I 5). `/talk` and the answer line were picked by a bench of three readers. Rule overrides: none.
lilleman added 1 commit 2026-10-17 23:04:34 +02:00
lilleman marked the pull request as work in progress 2026-10-17 23:04:38 +02:00
lilleman added 6 commits 2026-10-17 23:32:23 +02:00
lilleman added 4 commits 2026-10-17 23:42:01 +02:00
lilleman added 3 commits 2026-10-17 23:56:01 +02:00
lilleman marked the pull request as ready for review 2026-10-17 23:56:11 +02:00
lilleman added 1 commit 2026-10-18 00:03:26 +02:00
lilleman merged commit fdd48bb1cd into main 2026-10-18 00:03:37 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lilleman/claude-config#308