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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user