Open every line loop-claude prints with the machine's local time

This commit is contained in:
2026-10-28 18:30:24 +01:00
parent 9014fd0a2c
commit 43e7e96b41
13 changed files with 123 additions and 58 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import typing
from loop_claude.effects import Effects
from model_routing.route import Route
from loop_claude.terminal import say
from loop_claude.stop import Stop
RELOAD_FLAG = "--reloaded"
@@ -84,7 +85,7 @@ def exec_if_edited(launcher: pathlib.Path, baseline: str, loop_run: LoopRun, eff
return None
trial = effects.python([str(launcher), "--help"], loop_run.root)
if trial.returncode != 0:
print(f"keeping the running script: {trial.stderr.strip() or f'exit {trial.returncode}'}", file=sys.stderr)
say(f"keeping the running script: {trial.stderr.strip() or f'exit {trial.returncode}'}", effects)
return None
try:
effects.execv(sys.executable, [sys.executable, str(launcher), RELOAD_FLAG, json.dumps(dataclasses.asdict(loop_run))])