mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-05-18 07:15:49 +02:00
701f6f1197
The Contact Info dialog showed stale path data (e.g. "Flood" instead of the discovered route) because auto_update_contacts is OFF and PATH_UPDATE only sets _contacts_dirty=True without refreshing mc.contacts. The API then served stale in-memory data even after cache invalidation. Now ensure_contacts(follow=True) is called on PATH_UPDATE to read fresh contact data from the device before invalidating cache and emitting the socket event. PATH_UPDATE events are rare (only on path discovery), so the serial I/O cost is acceptable unlike advertisements. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>