From 60e7e57663d613056e7f1f388b5a2adf1787159f Mon Sep 17 00:00:00 2001 From: MarekWo Date: Fri, 5 Jun 2026 09:04:40 +0200 Subject: [PATCH] fix(ui): include out_path_hash_mode in cli.get_contacts_with_last_seen This was the missing piece behind the lingering 1-byte path rendering in Contact Info / Contact Management. The cache layer between mc.contacts and the /api/contacts/detailed endpoint rebuilt each contact dict by hand and dropped the out_path_hash_mode field, so the API always saw the default 0 and rendered multi-byte paths as single-byte hops. --- app/meshcore/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/meshcore/cli.py b/app/meshcore/cli.py index b1d7472..f61f0b3 100644 --- a/app/meshcore/cli.py +++ b/app/meshcore/cli.py @@ -184,6 +184,7 @@ def get_contacts_with_last_seen() -> Tuple[bool, Dict[str, Dict], str]: 'flags': contact.get('flags', 0), 'out_path_len': contact.get('out_path_len', -1), 'out_path': contact.get('out_path', ''), + 'out_path_hash_mode': contact.get('out_path_hash_mode', 0), 'adv_name': contact.get('adv_name', contact.get('name', '')), 'last_advert': int(last_adv) if last_adv and isinstance(last_adv, (int, float)) and last_adv > 0 else 0, 'adv_lat': contact.get('adv_lat', 0.0),