Decode the worker's stream leniently, name UserEntryKind's members only, and restore the section-headers decision's citation

This commit is contained in:
2026-09-28 16:28:43 +02:00
parent 72d04227f9
commit 9659f70efd
6 changed files with 24 additions and 20 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ from loop_claude.transcript import parse, parts, said
def run_worker(root, args):
try:
proc = subprocess.Popen(["claude", *args], cwd=root, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, text=True)
proc = subprocess.Popen(["claude", *args], cwd=root, encoding="utf-8", errors="replace", stdin=subprocess.DEVNULL, stdout=subprocess.PIPE)
except OSError as failure:
return Failure(f"could not start claude: {failure.strerror}")
with proc: