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
View File
@@ -34,6 +34,8 @@ class FakeEffects:
# Each tmux command run. They stay out of self.calls, as the DMs do. tmux prints `windows` for list-windows, or without them finds no session.
self.tmux_calls: list[list[str]] = []
self.tmux_version = tmux_version
# Why a claude cannot run in the loop's Claude home; None while one can.
self.home_unready: str | None = None
self.windows = windows
# The checkout the session's @loop-root option names.
self.owner = owner
@@ -58,6 +60,7 @@ class FakeEffects:
def effects(self) -> Effects:
return Effects(
claude=lambda args, cwd, stdin: self.answer("claude", (args, stdin)),
claude_home=lambda: self.home_unready,
claude_on_terminal=self.on_terminal_claude,
discard_typed=lambda: self.calls.append(("discard_typed", None)),
dm=self.dm,