Files
corescope-rx/test
efitenandClaude Opus 5 0bd3587b67 fix: temporarily force zero-hop path when asking a saved-contact repeater for regions
Repeaters only answer ANON_REQ_TYPE_REGIONS over a direct route
(simple_repeater/MyMesh.cpp requires isRouteDirect()), but sendAnonReq
(BaseChatMesh.cpp) sends over whatever out_path is stored for a contact,
which for a repeater already saved as a contact can be a stale multi-hop
path even when node-discover just confirmed it's zero-hop reachable now.

Before asking such a target, read its contact record (CMD_GET_CONTACT_BY_KEY),
override out_path_len to 0 (CMD_ADD_UPDATE_CONTACT), ask, then restore the
original record — all invisible to the user. The original frame is persisted
to localStorage before the override write and replayed on the next connect
to the same companion if the app dies or the BLE link drops mid-dance.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-18 21:22:34 +02:00
..