Run every claude the loop starts in a Claude home generated outside the clone
CI / tests (pull_request) Successful in 4m45s

This commit is contained in:
2026-12-04 01:07:03 +01:00
parent 2460b9e132
commit 0203a8e0b3
48 changed files with 703 additions and 369 deletions
+3 -3
View File
@@ -122,9 +122,9 @@ def run(argv: list[str], env: typing.Mapping[str, str], paths: Paths, launcher:
return Stop(0 if words in (["-h"], ["--help"]) else 1, HELP)
if writes or closes:
return epic_written(words[0], writes, paths, env, backend, stdin)
# Before anything starts: a clone, a claude session or a tmux window.
if not dry_run_asked and (reason := tmux.unusable(effects.tmux, chunk_prompt.DRIVER)):
return Stop(1, reason)
# Before anything starts: a clone, a claude session or a tmux window. One stop names everything that is the person's to do. A dry run opens no window, but its planning runs claude.
if needs := [reason for reason in (None if dry_run_asked else tmux.unusable(effects.tmux, chunk_prompt.DRIVER), effects.claude_home()) if reason]:
return Stop(1, "\n".join(needs))
config = load(paths.home, env)
if isinstance(config, Failure):
return Stop(1, config.reason)