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
+2 -2
View File
@@ -10,6 +10,7 @@ import typing
from review_replay.rounds import authored_by, lost_inputs, reviewed_path, Round
from review_replay.changes import Change
from loop_state.paths import claude_home, STATE_HOME
from claude_code.reply import claude_reply, Limited
from git_cli.git_repo import default_ref
from loop_effects.effects import Effects
@@ -21,7 +22,6 @@ from review_rules.reviewer_context import principles_line, reviewer_context
from text_files.compressed import read_stored, SUFFIX
from review_rules.review_folder import reports_folder, review_folder
from model_routing.ladder import Rung
from loop_state.paths import STATE_HOME
from claude_code.entries import structured_output
# Where, under the home folder, the review folders were until 0.18.0: the prompt of a round archived before then names its review folder there.
@@ -133,7 +133,7 @@ def launch(reviewer: str, rung: Rung, prompt: str, checkout: str, copies: Copies
args += ["--settings", json.dumps({"env": change.env})]
if not change.without_instruction_files:
return args, prompt
context = reviewer_context(home)
context = reviewer_context(claude_home(env, home))
if isinstance(context, Failure):
return context
config = located(checkout, home, env)