mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
Instead of reloading the entire message list when echo data arrives, now updates only the affected message elements in the DOM: - Add data-msg-id attribute to message wrappers for targeted lookup - Add GET /api/messages/<id>/meta endpoint returning metadata for a single message (computes pkt_payload, looks up echoes, analyzer URL) - Replace loadMessages() echo handler with refreshMessagesMeta() that finds messages missing metadata and updates them individually - Fix path_len=0 treated as falsy (use ?? instead of ||) Flow: message appears instantly via WebSocket (with SNR + hops), then ~2s later echo data triggers targeted meta fetch → route info and analyzer button appear smoothly without any chat window reload. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>