Name the session invariant run_cycle resumes on, and say which outcome ended an interrupt #22

Merged
lilleman merged 5 commits from session-open into main 2026-09-24 23:36:30 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit edff375ff9 - Show all commits
+1 -1
View File
@@ -12,7 +12,7 @@ continue until that interrupt or Ctrl-C.
Exit 1: no task, no premises, claude leaves no transcript, or the worker or the judge fails three
times running, a verdict missing a field or quoting nothing in the transcript being a judge failure.
Exit 2: the human is needed and stdin or stdout is not a terminal, or the interrupt ended without
them typing anything. Rerunning resumes the session after either. Before an interrupt every worktree
them typing anything. Rerunning resumes the session after either exit. Before an interrupt every worktree
is marked trusted in ~/.claude.json.
Each project has one session, "A ~/code/<path> auto-mode" (the absolute path outside ~/code),
+1 -1
View File
@@ -217,7 +217,7 @@ class RunCycle(unittest.TestCase):
loop.run_cycle("task", "premises", "A name", SESSION_ID)
self.assertEqual(stopped.exception.code, 2)
said = "".join(str(call.args[0]) for call in stderr.write.call_args_list)
self.assertIn("transcript:", said)
self.assertIn(f"transcript: {loop.ARCHIVE}", said)
self.assertIn("not a terminal", said)
for plan in ("fail fail fail", "unquoted unquoted unquoted"):
open(verdicts, "w").write(plan)