mirror of
https://github.com/efiten/coredrive-rx.git
synced 2026-11-27 14:58:03 +00:00
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>