fix: use utf-8 for harness codex prompts
This commit is contained in:
+2
-1
@@ -375,7 +375,8 @@ class StepExecutor:
|
||||
prompt = preamble + step_file.read_text(encoding="utf-8")
|
||||
result = subprocess.run(
|
||||
[self._codex_command(), "exec", "--dangerously-bypass-approvals-and-sandbox", "--json", "-"],
|
||||
cwd=self._root, capture_output=True, text=True, input=prompt, timeout=1800,
|
||||
cwd=self._root, capture_output=True, text=True, input=prompt,
|
||||
encoding="utf-8", errors="replace", timeout=1800,
|
||||
)
|
||||
|
||||
if result.returncode != 0:
|
||||
|
||||
Reference in New Issue
Block a user