Answer the architect's second round
This commit is contained in:
@@ -40,7 +40,7 @@ import sys
|
||||
from loop_claude.claude_code.session import session_for
|
||||
from loop_claude.cycle.steps import Cycle, run_cycle
|
||||
from loop_claude.effects import Effects
|
||||
from loop_claude.loop.reload import RELOAD_FLAG, LoopRun, decode_state, exec_if_edited, fingerprint
|
||||
from loop_claude.loop.reload import RELOAD_FLAG, LoopRun, decode_handed, exec_if_edited, fingerprint
|
||||
from loop_claude.outcome import Stop
|
||||
from loop_claude.project.checkout import checkout_root, project_name
|
||||
from loop_claude.project.models import project_models
|
||||
@@ -86,7 +86,7 @@ def loop_run_from(argv, cwd, effects: Effects) -> LoopRun | Stop:
|
||||
return Stop(0 if task else 1, __doc__.strip())
|
||||
root = checkout_root(cwd, effects)
|
||||
return root if isinstance(root, Stop) else LoopRun(0, root, task)
|
||||
loop_run = decode_state(argv[1], LoopRun) if len(argv) == 2 else None
|
||||
loop_run = decode_handed(argv[1], LoopRun) if len(argv) == 2 else None
|
||||
if not (loop_run and loop_run.root and loop_run.task):
|
||||
return Stop(1, f"the reload cannot read the loop's state from {argv[1:]}; rerun loop-claude <task>")
|
||||
return Stop(1, f"the reload cannot read the loop run from {argv[1:]}; rerun loop-claude <task>")
|
||||
return loop_run
|
||||
|
||||
Reference in New Issue
Block a user