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.