Fix review findings, add default flood scope, and address recent issues

Review fixes:
- Keep stored message history beyond the 200-message window; stop
  messages leaking between radios; reset link/session state on disconnect
- Accept firmware's 176-byte RX frames over USB/TCP
- Hold APP_START during contact sync; contact-sync watchdog; replay DMs
  from not-yet-known senders; tombstone late command replies; finish
  channel sync on ERR_NOT_FOUND; fail region-scoped sends cleanly
- DM retry watchdog when RESP_CODE_SENT never arrives; late repeater CLI
  replies; ACK hash collisions; UTF-8-safe name truncation
- Image pipeline: delete-during-decode, lifecycle cancels, decoder memory
  release, entry cap, dead worker recovery, atomic model writes
- Storage: deterministic reaction hash across web/native, Smaz
  double-decode, per-entry parsing, per-radio path history and regions,
  review-mode data isolation
- UI: safe channel slot selection, byte-length name limits, double-send
  guard, mounted checks, localized hardcoded strings
- Skip persisted-store reload on repeat SELF_INFO

Features:
- Radio default flood scope (firmware ver 11+) and explicit unscoped
  sends (ver 12+)
- Scan for nearby nodes (#570)
- Optional distinct first-hop repeater counting for channel resend (#589)
- Optional region next to hop count (#580)

Issues:
- Message text follows system font size (#569)
- Repeater/room password field accepts 20 chars (#576)
- TCP auto-reconnect and keepalive (#571)
- Order feeds by local receive time; flag future timestamps (#584)
- Coding rate help text (#568), French "Favoris" (#575)
- iOS/macOS app badge now clears

Translations for all new strings in every locale.
This commit is contained in:
zjs81 committed 2026-10-11 01:25:31 -07:00
1 parent a64a33d0c0
commit 25f197c979
120 files changed
+10424 -687

No files matched your search

+6 -3
View File
@@ -110,6 +110,9 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
bool _showNodeLabels = true;
Contact? _targetContact;
Uint8List? _sentTagBytes;
// Tag the radio reported in RESP_CODE_SENT for the current trace; reset
// on every new trace so a late reply to an earlier one isn't accepted.
Uint8List? _sentAckTag;
// Live path resolved at trace time; used by the response handler for
// endpoint inference so it matches the path that was actually traced.
Uint8List _tracedPath = Uint8List(0);
@@ -449,6 +452,7 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
);
final sentTag = DateTime.now().millisecondsSinceEpoch ~/ 1000;
_sentAckTag = null;
_sentTagBytes = Uint8List(4)
..[0] = sentTag & 0xFF
..[1] = (sentTag >> 8) & 0xFF
@@ -470,7 +474,6 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
void _setupFrameListener() {
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
Uint8List tagData = Uint8List(4);
// Listen for incoming text messages from the repeater
_frameSubscription = connector.receivedFrames.listen((frame) {
if (frame.isEmpty) return;
@@ -481,7 +484,7 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
if (code == respCodeSent && _awaitingTraceSent) {
_awaitingTraceSent = false;
frameBuffer.skipBytes(1); //reserved
tagData = frameBuffer.readBytes(4);
_sentAckTag = frameBuffer.readBytes(4);
final timeoutMilliseconds = frameBuffer.readUInt32LE();
// Start timeout timer for trace response
@@ -512,7 +515,7 @@ class _PathTraceMapScreenState extends State<PathTraceMapScreen>
if (frame.length >= 12 &&
code == pushCodeTraceData &&
(listEquals(frame.sublist(4, 8), _sentTagBytes) ||
listEquals(frame.sublist(4, 8), tagData))) {
listEquals(frame.sublist(4, 8), _sentAckTag))) {
_timeoutTimer?.cancel();
if (!mounted) return;
_handleTraceResponse(frame);