mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user