Say the reload cannot read the loop's state in one wording across the message, --help and the changelog
This commit was merged in pull request #56.
This commit is contained in:
+5
-5
@@ -10,10 +10,10 @@ interrupt: `claude --resume` on the terminal, every worktree first marked truste
|
||||
An unfinished chunk resumes the same session next cycle; a finished one starts a fresh session.
|
||||
Cycles continue until that interrupt or Ctrl-C. Words: ~/.claude/CLAUDE.md → "Vocabulary".
|
||||
|
||||
Exit 1: no task, not inside a checkout, no premises, claude leaves no transcript, a reload whose
|
||||
state it cannot read, or the worker or the judge fails three times running. A worker fails when
|
||||
claude exits non-zero, is killed, or ends without a result event; a judge when its verdict misses a
|
||||
field or quotes nothing in the transcript.
|
||||
Exit 1: no task, not inside a checkout, no premises, claude leaves no transcript, a reload with
|
||||
unreadable state, or the worker or the judge fails three times running. A worker fails when claude
|
||||
exits non-zero, is killed, or ends without a result event; a judge when its verdict misses a field
|
||||
or quotes nothing in the transcript.
|
||||
Exit 2: the human is needed and stdin or stdout is not a terminal, or the interrupt ended without
|
||||
them typing anything. Rerunning resumes any open session.
|
||||
|
||||
@@ -381,7 +381,7 @@ def reload_if_edited(root, task, cycle_number, failures):
|
||||
def reloaded_state(handed):
|
||||
state = parse(handed[0]) if len(handed) == 1 else None
|
||||
if not state or {"cycle_number", "failures", "root"} - state.keys() or not isinstance(state.get("task"), str) or not state["task"]:
|
||||
sys.exit(f"the reload handed {handed}, not the loop's state with a task; rerun loop-claude <task>")
|
||||
sys.exit(f"the reload cannot read the loop's state from {handed}; rerun loop-claude <task>")
|
||||
return state
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user