Skip to content

Open-source skills for designing and reviewing software with AI agents

fix(tests): decode Codex traces as UTF-8 on Windows

Olivere3f18b02023d
diff --git a/tests/integration/test_codex.py b/tests/integration/test_codex.py
index d46b5ba..ca5bf76 100644
--- a/tests/integration/test_codex.py
+++ b/tests/integration/test_codex.py
@@ -67,7 +67,7 @@ def read_trace(thread_id: str) -> list[dict]:
paths = list(sessions.rglob(f"*{thread_id}.jsonl"))
assert len(paths) == 1, f"Expected one retained Codex trace for {thread_id}"
return [
- json.loads(line) for line in paths[0].read_text().split("\n")
+ json.loads(line) for line in paths[0].read_text(encoding="utf-8").split("\n")
if line.strip()
]