From 9afa4cbdbc818d20d65f4cd06bec88d9e5e68373 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 23:59:31 +0000 Subject: [PATCH] chore: remove redundant log handle assignment Agent-Logs-Url: https://github.com/meshtastic/firmware/sessions/04e26c6b-6a2b-45be-bbeb-79ae4d0be633 Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com> --- mcp-server/src/meshtastic_mcp/pio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcp-server/src/meshtastic_mcp/pio.py b/mcp-server/src/meshtastic_mcp/pio.py index ab8165670..be9ca1d0a 100644 --- a/mcp-server/src/meshtastic_mcp/pio.py +++ b/mcp-server/src/meshtastic_mcp/pio.py @@ -135,7 +135,7 @@ def _run_capturing( try: log_fh = log_path.open("a", encoding="utf-8") except OSError: - log_fh = None + pass # Append mode: the TUI truncates on startup, the session may produce # many tee'd commands (erase + flash + factory-reset response), and # we want all of them chronologically in one log.