From 84950e7a3e2de456b12386826256ad143a40b1da Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 3 May 2026 18:13:58 +0000 Subject: [PATCH 1/2] Initial plan From 08fab90f93cdf6b079a983afe36a284a93d2b8f9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 3 May 2026 18:14:48 +0000 Subject: [PATCH 2/2] fix: add encoding="utf-8" to write_text in _make_package helper to fix Windows UnicodeEncodeError Agent-Logs-Url: https://github.com/microsoft/apm/sessions/fef5d8c7-0e07-4b3e-9b8a-3020fcdb96af Co-authored-by: sergio-sisternes-epam <207026618+sergio-sisternes-epam@users.noreply.github.com> --- tests/unit/integration/test_command_integrator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/integration/test_command_integrator.py b/tests/unit/integration/test_command_integrator.py index 561a4069..b009f1d9 100644 --- a/tests/unit/integration/test_command_integrator.py +++ b/tests/unit/integration/test_command_integrator.py @@ -34,7 +34,7 @@ def _make_package(project_root, prompts): prompts_dir = pkg_dir / ".apm" / "prompts" prompts_dir.mkdir(parents=True) for name, content in prompts.items(): - (prompts_dir / name).write_text(content) + (prompts_dir / name).write_text(content, encoding="utf-8") mock_info = MagicMock() mock_info.install_path = pkg_dir