From f1e5f39a4efd618508fecca0e0e801e68a75627f Mon Sep 17 00:00:00 2001 From: MarekWo Date: Sun, 22 Feb 2026 17:57:47 +0100 Subject: [PATCH] fix: Reload echoes/acks after device name detection When MC_DEVICE_NAME=auto, _load_echoes() runs with "auto.echoes.jsonl" which doesn't exist. After actual device name is detected and paths updated, the data was never reloaded from the correct file, leaving incoming_paths and echo_counts empty. This caused missing path info for all messages older than the current bridge session. Co-Authored-By: Claude Opus 4.6 --- meshcore-bridge/bridge.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meshcore-bridge/bridge.py b/meshcore-bridge/bridge.py index 3b1cc1c..4a5d7e5 100644 --- a/meshcore-bridge/bridge.py +++ b/meshcore-bridge/bridge.py @@ -188,6 +188,11 @@ class MeshCLISession: self.acks_file = new_acks logger.info(f"Log paths updated for device: {new_name}") + # Reload echo and ACK data from the correct files + # (initial _load_echoes/_load_acks may have failed with the "auto" name) + self._load_echoes() + self._load_acks() + def _start_session(self): """Start meshcli process and worker threads""" logger.info(f"Starting meshcli session on {self.serial_port}")