Run every claude the loop starts in a Claude home generated outside the clone
CI / tests (pull_request) Successful in 4m45s
CI / tests (pull_request) Successful in 4m45s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user