Answer stability round 1: 0 🔴, 4 🟡 (0 misread); a chunk window is handed the two XDG variables, rule-hook's checks are tested under them, and three tests stop passing the developer's
CI / tests (pull_request) Successful in 5m16s

This commit is contained in:
2026-12-03 21:30:06 +01:00
parent 173d591986
commit 9b8f9e05e7
7 changed files with 82 additions and 16 deletions
+2 -3
View File
@@ -5,7 +5,7 @@ import re
import typing
from touch_predictions.beside import Beside, chunks_beside
from chunk_driver.claims import CHUNK_FLAG, epic_chunks, HANDED, loop_session, project_lock, starting
from chunk_driver.claims import CHUNK_FLAG, epic_chunks, handed, loop_session, project_lock, starting
from build_release.chunk import chunk_items
from git_cli.git_repo import default_ref
from loop_effects.effects import Effects, say
@@ -118,7 +118,6 @@ def start_chunks(loop_run: LoopRun, leaving: bool, paths: Paths, env: typing.Map
if isinstance(config, Failure):
return config
session = loop_session(loop_run.root, paths.home)
handed = {name: value for name, value in env.items() if name.startswith(HANDED)}
with starting(project_lock(loop_run.root, paths)) as unlocked:
if unlocked:
return unlocked
@@ -129,7 +128,7 @@ def start_chunks(loop_run: LoopRun, leaving: bool, paths: Paths, env: typing.Map
if isinstance(chunks, AwaitedMerges):
return chunks
for chunk in chunks:
started = tmux.start_chunk(tmux.Window(session, chunk, ""), loop_run.root, handed, [str(launcher), CHUNK_FLAG, chunk, loop_run.task], windows, True, effects.tmux)
started = tmux.start_chunk(tmux.Window(session, chunk, ""), loop_run.root, handed(env), [str(launcher), CHUNK_FLAG, chunk, loop_run.task], windows, True, effects.tmux)
if isinstance(started, Failure):
return started
windows = started