From e286658377ed63f17582be59bdc081811ed63b3d Mon Sep 17 00:00:00 2001 From: Victor Kyriazakos Date: Sun, 26 Jul 2026 20:59:52 +0000 Subject: [PATCH] fix(scripts): encode tool_search_livetest2 output as utf-8 (Windows footgun) check-windows-footguns (blocking CI) flagged a bare Path.write_text() without encoding= at scripts/tool_search_livetest2.py:190, which uses the platform locale encoding on Windows. Pin utf-8. Pre-existing on main; unblocks the required-checks gate for this PR. --- scripts/tool_search_livetest2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tool_search_livetest2.py b/scripts/tool_search_livetest2.py index b81f91f91af..522b141685c 100644 --- a/scripts/tool_search_livetest2.py +++ b/scripts/tool_search_livetest2.py @@ -187,7 +187,7 @@ def run_one(scenario: Dict[str, Any], mode: str, rep: int, out_dir: Path) -> Dic "final_response": base._redact_secrets(final_response)[:500], } out_path = out_dir / f"{scenario['id']}__{'enabled' if enabled else 'disabled'}__rep{rep}.json" - out_path.write_text(json.dumps(rec, indent=1)) + out_path.write_text(json.dumps(rec, indent=1), encoding="utf-8") shutil.rmtree(Path(os.environ["HERMES_HOME"]).parent, ignore_errors=True) return rec