From 95db0e2ada43296b19b619f5542262ecbaef9482 Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Thu, 1 Oct 2026 23:02:25 -0700 Subject: [PATCH] test: read the batch probe log BOM-tolerantly Windows footgun gate: reads use utf-8-sig. --- tests/agent/test_local_tool_batches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/agent/test_local_tool_batches.py b/tests/agent/test_local_tool_batches.py index ce9d8d40a0..6d11c5fde7 100644 --- a/tests/agent/test_local_tool_batches.py +++ b/tests/agent/test_local_tool_batches.py @@ -103,7 +103,7 @@ def test_local_batch_runs_once_per_entry_through_agent_and_persists_pairs(mcp_se if mode != "interrupt": assert result["final_response"] == "done" expected = {"allow": ["read_alpha", "read_beta"], "scope": []}.get(mode, ["read_alpha"]) - executed = [json.loads(line) for line in call_log.read_text(encoding="utf-8").splitlines()] if call_log.exists() else [] + executed = [json.loads(line) for line in call_log.read_text(encoding="utf-8-sig").splitlines()] if call_log.exists() else [] assert executed == expected assert hooks == ([] if mode == "scope" else names[:1] if mode in {"schema", "interrupt"} else names) messages = result["messages"]