Decode the worker's stream leniently, name UserEntryKind's members only, and restore the section-headers decision's citation
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user