Pin the archive on its destination, and bind the rerun to both exits
This commit is contained in:
+1
-1
@@ -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),
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user