fix: harden subprocess output decoding across lessons

This commit is contained in:
Haoran
2026-08-26 01:05:16 +08:00
parent 3e17b98504
commit cce031e632
34 changed files with 178 additions and 75 deletions

View File

@@ -88,7 +88,7 @@ def _run_bash_process(command: str) -> tuple[str, int | None]:
cwd=WORKDIR,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
text=True,
text=True, errors="replace",
start_new_session=True,
)
with _shell_process_lock: