diff --git a/CHANGELOG.md b/CHANGELOG.md index d90c8768..1fa7b1c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,138 @@ All notable changes to Offband Meshcore. Pre-releases are tagged `-beta.N` / `-rc.N`. +## [1.8.1] - 2026-11-27 + +Contact adds confirmed by the radio, full-radio handling and prune; Bluetooth radio switch no +longer misfiles channel history; DM flood fallback unconditional with a measured ACK window; +encrypted log upload to Offband with a crash, ANR and unexpected-exit offer; location follows +the newest advert; channel repeat matching by exact second; CLI gated on advert tags +`0x06`/`0x07`. Database schema unchanged (2). + +### Upgrade notes + +- One-time startup cleanup moves cross-radio channel copies to `held_1163_copy` (copy = + identical receive time; original = the radio connected at receipt). Not deleted; undecidable + copies left in place (#1163). +- A stored zero-hop path override normalizes to Auto (in `setPathOverride`, both contact + stores on load, path resolution, `pathBytesForDisplay` and labels) (#1223). +- Installs with no stored `max_message_retries` go from 5 attempts to 3 (#316). +- `autoRouteRotationEnabled` and `clearPathOnMaxRetry` deleted; their l10n keys are left in + the ARB files, inert (#1223). +- 67 new UI strings, English-only in all 17 other locales; `untranslated.json` regenerated. + +### Log upload (#1190) + +- Envelope: ephemeral X25519, HKDF-SHA256, AES-256-GCM with the 53-byte header as additional + data; Dart output matches Python `cryptography` vectors byte for byte (#1208). +- Upload client seals to key id `7fbd1b06` and POSTs to `logs.offband.app`; 413, 429, + 400/411, other statuses, no network and no answer each map to their own reason; a package + over 25 MB sealed is refused before sending (#1209). +- Send to Offband next to Share on both log screens and in Debug settings: consent text, + optional note, name and email (sealed in `sender.json`, never in headers), reference code + with Copy, persistent failure with Retry of the kept package (#1210). Web zips the in-memory + log through the same redactor (#1211). +- Package builder and redactor: password and PIN bytes blanked in logged frames and CLI text; + private key keeps its first 3 bytes; every sendable code classified, unclassified fails a + test; Share, Save and Send build the same package (#1204, #1205, #1206). +- Run marker: unexpected exit when left on screen, OS reclaim when left in background (never + offered), unreadable marker asked about; new Android ANR and crash exit records name the + failure, backfilled ones ignored; web counts only unhandled errors (#1213). +- Next-launch banner (Send, Not now, Don't ask again); "Send crash logs automatically" off by + default, auto-send failure falls back to the banner (#1214). +- `tools/logs/offband_logs.py`: `keygen`, `list`, `pull ` (download, decrypt, unpack, + mark seen, comment on the intake issue); an untrusted upload's paths are bounded (#1195, + #1216, #1217). +- Play Data Safety and App Store privacy answers in + `docs/initiatives/standalone/1190-log-upload/STORE-DISCLOSURES.md` (#1220). + +### Direct messages + +- Final attempt always clears the radio's path (`CMD_RESET_PATH`) and floods, including for a + hand-picked override; the override is re-written to the radio only when it changes, keyed + on the route. Per-attempt `CMD_ADD_UPDATE_CONTACT` removed. "Direct" removed (#1223, + #1222). +- Attempts numbered from 1 in the UI and the AckHash log line (#1223). +- DM ACK window floored at 12500 ms (p90 of 24 measured round trips, OB-ZRNBY), radio + `est_timeout` used as a floor, clamped to 60 s; default attempts 5 to 3. Floor is on the DM + path only; `calculateTimeout` stays unfloored for the CLI budget (#316). + +### Contacts + +- `addContactByKey`, `importDiscoveredContact`, `importContact` await OK/ERR (5 s) and return + `ContactAddResult`; persistent errors; DM refused by the radio fails at once via + `failAwaitingSendOnRadioError` (#1028). +- Full radio detected from sync count, ERR 3, push `0x90`, push `0x8F`; add held behind + remove-suggested / prune / cancel; `0x8F` drops the contact to Discovery, messages kept + (#1028). +- Prune stale contacts: 15/30/90 days, favorites never listed, one radio-confirmed removal at + a time, stops at first failure (#1182). +- `sendFrame` registers the reply slot before the transport write (Windows BLE reply race) + (#1028). +- One log line per contact removal on every path, with name, short key, favorite, path and + radio; `0x8F`/`0x90` logged; auto-add settings logged at connect (#1170). + +### Channels and history + +- Every connect on every transport drops the previous radio's message windows, DMs and + channel lists; saves write only changed messages (#1163). +- Slots record the channel key their history loaded under; a confirmed sync reloads a + mismatched slot; history loads logged with radio, slot, channel, PSK fingerprint (#1163). +- Unanswered channel write waits for the re-read before "not confirmed"; Resync on the error + and on Channels; Settings > Actions > Delete message history; Clear Chat deletes stored + history (#1163). +- `_isChannelRepeat` requires the same timestamp second instead of a 30 s window (#1183). + +### Location + +- Radio record wins over stored values; newest advert sets location including none; 0,0 + unknown at parse; older advert ignored unless the applied one is >1 h ahead; Packet Path + shows coordinate age (#1166). + +### CLI + +- `resolveCliSupport`: stock 1.18+ both on; Offband per advert tag `0x06` (local) / `0x07` + (remote); no advert = off. Remote CLI permission switch gated on `0x07`. Local send without + `0x06` refused before any frame. No Offband firmware release emits the tags yet (firmware + #2213) (#1155). + +### Diagnostics + +- Every OS-reported BLE drop writes one WARN line: `disconnectReason` (read one microtask + after the event), seconds since the last frame, app lifecycle state; "reason not available + on " on Windows, Linux and web. `main.dart` logs lifecycle changes (#1186). + +### Apple + +- `PRODUCT_NAME` = Offband MeshCore on iOS and macOS; CI asserts both; `isiOSAppOnMac` notice + once per version (#1140). +- macOS entitlement `files.user-selected.read-write` added; CI asserts it on the signed app + (#1143). + +### CI, tooling, docs + +- App manual first pages + Android screenshots; docs-change dispatch to offband-site; Set + Region Scope guide, screenshots redacted (#1145, #1148, #1232, #1236). +- `tools/play/play_release.py` and `play-publish.yml`; AAB provenance attestation in + `release-signed.yml` (#1084, #1087, #1088). +- Fail-first test requirement for code changes (#1173). +- Release signing reads `OFFBAND_KEY_PROPERTIES` (#1161). +- Feature plan for log upload (#1190). + +### Known issues + +- #1121 Phone notifications Off can still notify. +- #1167 Contacts, including favorites, disappear with overwrite off; removals now logged. +- #1123 Factory reset leaves stale data for that radio on other devices. +- #1132 On firmware 1.7.0, boards with a display and no controllable LED still show the LED + switch (needs the firmware tags). +- #1124 `_sendIndicatorSet` never clears its pending-write flag, so a stale read can overwrite + a newer change. +- #1134 Position Reporting Interval reports success when the radio refuses it (T1000-E). +- #1187 No BLE disconnect reason on Windows, Linux and web. +- #1066 Two capability reads still use `FIRMWARE_VER_CODE`. +- #1230 Inbound DM duplicate suppression is untested and its window unsized. + ## [1.8.0] - 2026-11-09 Production successor to 1.7.0. A channels release: message state keyed by channel identity diff --git a/announcements/1.8.1.md b/announcements/1.8.1.md new file mode 100644 index 00000000..d3a22506 --- /dev/null +++ b/announcements/1.8.1.md @@ -0,0 +1,73 @@ +**Title:** Offband MeshCore 1.8.1 + +--- + +Offband MeshCore 1.8.1 is out. It's a contacts, delivery and diagnostics release: a contact is +kept only when your radio confirms it, direct messages fall back to a flood when their route +has gone bad, and you can send the app's logs to Offband, encrypted, when something goes +wrong. + +Full release notes, downloads and known issues: +https://github.com/OffbandMesh/meshcore-client/releases/tag/v1.8.1 + +### Before you update + +- **Copied messages are moved aside once.** On first start, 1.8.1 moves channel messages that + an older version copied into the wrong radio after a Bluetooth switch to a separate store. + Nothing is deleted. Settings > Actions > **Delete message history** clears a radio's + history. +- **"Direct" is gone from a contact's path options.** A contact set to Direct goes back to + Auto. A hand-picked path is kept. +- **Direct messages try 3 times, not 5,** and each attempt waits at least 12.5 seconds for + the delivery confirmation. +- **The Remote CLI switch shows only on radios that support it.** No Offband firmware release + does yet; stock MeshCore 1.18 or newer does. +- **New text is English-only for now** in the other 17 languages. + +### What's new + +- **Send logs to Offband:** from the log screens or Settings > Debug. The logs include your + messages and the radio traffic, with passwords and PINs removed, encrypted so only Offband + can read them, and deleted 30 days after review. A note, your name and your email are + optional. After a crash, an "app not responding" or an unexpected close, the next launch + offers to send them. Sending automatically is off unless you turn it on. +- **Direct messages:** the last attempt floods when the stored route fails, which also lets + both radios relearn a working route. Auto route rotation and Clear path on max retry are + removed because the fallback always runs now. +- **Contacts:** an add is kept only when the radio confirms it. A full radio asks before + anyone is removed. Prune stale contacts removes ones not heard in 15, 30 or 90 days, never + favorites, and keeps their messages. A direct message the radio refuses fails at once with + the reason. +- **Messages:** switching Bluetooth radios no longer files one radio's messages under + another. A channel write the radio didn't answer offers Resync. Sending the same channel + text twice shows two messages. +- **Map:** a node's location follows its newest advert, and Packet Path shows how old it is. +- **Apple:** both apps are named Offband MeshCore, the iPhone app on a Mac says once that it's + the iPhone version, and the Mac app can save files again. +- **Troubleshooting:** Bluetooth drops are logged with the reason the system gives, and every + contact removal is logged by name. + +### Known issues + +- A channel's phone notifications set to Off can still notify (#1121). +- Contacts, including favorites, can disappear with overwrite turned off (#1167). +- A factory reset deletes the app data only on the phone that sent it (#1123). +- On a T1000-E, QCC badge or Heltec T096 running firmware 1.7.0, the Status LED switch + appears but the radio refuses it (#1132). +- A Display or LED change can be undone by an older reading arriving just after it (#1124). +- On a T1000-E, Position Reporting Interval says it saved when the radio refused it (#1134). +- On Windows, Linux and the web, a Bluetooth drop is logged without a reason (#1187). + +### Get it + +- **Android:** [Google Play](https://play.google.com/store/apps/details?id=app.offband.meshcore), + testers first, or the APK on the release page +- **iPhone:** [App Store](https://apps.apple.com/us/app/offband-meshcore/id6829124741) +- **Windows, macOS, Linux:** [v1.8.1 release](https://github.com/OffbandMesh/meshcore-client/releases/tag/v1.8.1) +- **Browser:** https://offband.app +- **Offband firmware 1.7.1:** [offband-v1.7.1](https://github.com/OffbandMesh/meshcore-firmware/releases/tag/offband-v1.7.1) + +Questions go in [Q&A](https://github.com/OffbandMesh/meshcore-client/discussions/categories/q-a) +and bugs in [Issues](https://github.com/OffbandMesh/meshcore-client/issues). Thanks to the +[OKIMesh community](https://okimesh.org/). If you'd like to help keep Offband going: +https://offband.org/donate diff --git a/discord/1.8.1.md b/discord/1.8.1.md new file mode 100644 index 00000000..07eda2d6 --- /dev/null +++ b/discord/1.8.1.md @@ -0,0 +1,21 @@ +🚀 **Offband MeshCore 1.8.1 is out.** Contacts you can count on, direct messages that find their way back, and a way to send us your logs when something goes wrong. + +⚠️ **Heads up before updating.** "Direct" is gone from a contact's path options; a contact set to it goes back to Auto. Direct messages now try 3 times instead of 5, waiting at least 12.5 seconds each time. And on first start, 1.8.1 moves aside channel messages an older version copied into the wrong radio after a Bluetooth switch (moved, not deleted). + +📨 **Fewer "failed" direct messages that actually arrived.** When a contact's stored route goes bad, the last attempt floods, and the reply teaches both radios a working route again. Before, that fallback was behind a setting that was off by default, so a message could arrive and still show as failed. + +👥 **Contacts.** A contact is kept only when your radio confirms the add. A full radio asks you to remove someone, prune stale contacts, or cancel, and nothing changes until you choose. **Prune stale contacts** clears out ones you haven't heard from in 15, 30 or 90 days, never favorites, and keeps their messages. + +🩺 **Send logs to Offband.** From the log screens or Settings > Debug, send the app's logs straight to us, encrypted so only Offband can read them, with passwords and PINs removed. Add a note and, if you'd like a reply, your name and email. After a crash or freeze, the next launch offers to send them. You get a reference code to mention when you report the problem. + +📡 **Also:** switching Bluetooth radios no longer mixes up their messages, and Settings can delete a radio's message history. Node locations follow the newest advert. Sending the same text twice shows two messages. On Mac, both apps are named Offband MeshCore and the Mac app can save files again. New text is English-only for now in other languages. + +🐛 **Known issues** (full list in the release notes): a channel's phone notifications set to Off can still notify, contacts can still disappear with overwrite off (we now log every removal to find out why), and a factory reset only clears the app data on the phone that sent it. + +**📥 Google Play:** testers first, production follows. Search **Offband MeshCore**, or https://play.google.com/store/apps/details?id=app.offband.meshcore +📱 **iPhone, on the App Store:** https://apps.apple.com/us/app/offband-meshcore/id6829124741 (1.8.1 follows Apple's review) +💻 **Desktop (Windows / macOS / Linux) and Android APK:** https://github.com/OffbandMesh/meshcore-client/releases/tag/v1.8.1 +🌐 **Or run it in your browser:** https://offband.app +📻 **Offband firmware 1.7.1:** https://github.com/OffbandMesh/meshcore-firmware/releases/tag/offband-v1.7.1 + +💚 Thanks as always to the **OKIMesh community** (https://okimesh.org/). Offband is open source and always will be; if you'd like to help keep it going: https://offband.org/donate diff --git a/play/1.8.1.txt b/play/1.8.1.txt new file mode 100644 index 00000000..8a58ca32 --- /dev/null +++ b/play/1.8.1.txt @@ -0,0 +1,8 @@ +Offband MeshCore 1.8.1 + +New: send the app's logs to Offband, encrypted, from Settings or after a crash. +Direct messages flood when their route fails and wait longer for delivery. The Direct path option is gone. +A contact is kept only when your radio confirms it, a full radio asks before one is removed, and you can prune stale contacts. +Switching Bluetooth radios no longer mixes up their messages. +Locations follow the newest advert. +Sending the same text twice shows two messages. diff --git a/pubspec.yaml b/pubspec.yaml index 37a7ff93..1cb112ad 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.8.0+69 +version: 1.8.1+70 environment: sdk: ^3.9.2 diff --git a/release-notes/1.8.1.md b/release-notes/1.8.1.md new file mode 100644 index 00000000..0696408b --- /dev/null +++ b/release-notes/1.8.1.md @@ -0,0 +1,140 @@ +## Offband MeshCore 1.8.1 + +A contacts, delivery and diagnostics release. The app keeps a contact only when your radio +confirms it, asks before a full radio drops anyone, and no longer files one radio's messages +under another after a Bluetooth switch. Direct messages now fall back to a flood when their +route has gone bad, and wait long enough for the delivery confirmation to arrive. And you can +now send the app's logs to Offband, encrypted, when something goes wrong. + +### Please read before updating + +- **Copied messages are moved aside once.** Earlier versions could save one radio's channel + messages into another radio's channel after a Bluetooth switch. On first start, 1.8.1 moves + those copies to a separate store. It doesn't delete them, and a copy it can't match to an + original stays where it is. To clear what's left for a radio, use Settings > Actions > + **Delete message history** (#1163). +- **"Direct" is gone from a contact's path options.** A contact set to Direct goes back to + Auto, which already settles on the direct route for a radio in range. A hand-picked path is + kept (#1223). +- **Direct messages try 3 times, not 5, and wait longer each time.** Each attempt waits at + least 12.5 seconds for the delivery confirmation, so a message gives up after about the same + time as before while sending less on a shared mesh. If you never changed Max Message + Retries, it moves from 5 to 3. The slider still goes from 2 to 10 (#316). +- **A full radio asks first.** When your radio's contact list is full, adding a contact asks + you to remove a suggested contact, prune stale ones, or cancel. Nothing is sent to the radio + until you choose (#1028). +- **The Remote CLI switch shows only on radios that support it.** No Offband firmware release + does yet. Stock MeshCore 1.18 or newer does (#1155). +- **New text is in English only.** The 67 new messages and labels in this release are English + in every language for now. + +### Send logs to Offband + +- **Send to Offband** sits next to Share on both log screens and in Settings > Debug. It sends + the app's logs, including your messages and the radio traffic, with passwords and PINs + removed. They are encrypted on your device so only Offband can read them, and deleted 30 + days after we review them. The screen says this before you send (#1190, #1193). +- You can add a note on what happened, and your name or screen name and email. All three are + optional. Without contact details we can't get back to you with an update. +- A sent package gets a reference code, with a Copy button. Mention it when you report the + problem so we can find your logs. If a send fails, the reason stays on screen and **Retry** + sends the same package again. +- **After a crash, an "app not responding" or an unexpected close**, the next launch offers to + send the logs: Send, Not now, or Don't ask again. When the system closes the app in the + background to free memory, it doesn't ask. **Send crash logs automatically** is off unless + you turn it on in Settings > Debug (#1194). + +### Direct messages + +- **A failed route now falls back to a flood.** The radio sends a direct message along the + route it has stored for that contact. When that route has gone bad, the last attempt now + floods instead, and the reply that comes back teaches both radios a working route again. + Before, that fallback sat behind **Auto route rotation**, which was off by default, so + messages could arrive and still show as failed (#1223, #1198). +- Auto route rotation and **Clear path on max retry** are removed, because the fallback now + always runs. The route weight and Max Message Retries sliders they hid are shown, since + they applied to every send anyway (#1223). +- A hand-picked path is still used for every attempt but the last. If you change it while a + message is sending, the new path goes to the radio (#1223). +- Attempts are counted from 1, so the last one no longer reads as if another is still to come + (#1223). + +### Contacts + +- An add is kept only when the radio says OK. If the radio refuses it or doesn't answer within + 5 seconds, the app says which, and the message stays until you dismiss it. A pasted contact + that doesn't parse says "Invalid contact data" (#1028). +- A direct message the radio refuses fails at once, with the reason on the message, instead + of after the delivery timeout (#1028). +- **Prune stale contacts**, in the Contacts menu and in the full-radio prompt, lists contacts + that aren't favorites and haven't been heard for 15, 30 or 90 days. It removes the ticked + ones one at a time, each confirmed by the radio, and keeps their direct messages (#1182). +- When the radio overwrites a contact to make room, the app moves it to Discovery, keeps its + messages, and names it in a banner (#1028). + +### Messages + +- Switching between Bluetooth radios no longer files the previous radio's channel messages + under the new one (#1163). +- Settings > Actions > **Delete message history** removes the connected radio's channel and + direct message history. Clear Chat now deletes the stored history too (#1163). +- A channel write the radio didn't answer waits for a re-read before saying "not confirmed", + and the error offers **Resync**. The Channels screen has a Resync action (#1163). +- Sending the same channel text twice in a row shows two messages, not one with a repeat count + (#1183). +- On Windows over Bluetooth, a radio's quick reply could be missed and reported as no reply. + Fixed (#1028). + +### Map and paths + +- A node's location is what its newest advert says, including no location. 0,0 counts as + unknown and isn't plotted. With no newer advert, the last known location stays, and Packet + Path shows its age (#1166). + +### CLI console + +- Settings shows the Device CLI, and contacts get the CLI console and the Remote CLI switch, + only on radios that say they support them. Stock MeshCore 1.18 or newer gets both. No + Offband firmware release supports them yet, so on Offband radios they stay hidden. A + command sent to a radio without CLI support is refused with an error (#1155). + +### Apple + +- The iPhone app and the Mac app are both named Offband MeshCore. On a Mac the iPhone app + showed as "Runner" (#1140). +- Running the iPhone app on a Mac shows a one-time notice that it's the iPhone version + (#1140). +- Mac app: the Save dialog works, so logs and exports can be saved again (#1143). + +### For troubleshooting + +- Every Bluetooth drop the system reports is logged with its reason where the platform gives + one (iPhone, Mac, Android), the time since the radio last sent anything, and whether the app + was in the background. App lifecycle changes are logged too (#1186). +- Every contact removal is logged with the contact's name, whether it was a favorite, and + what removed it. This is the first step on contacts that disappear (#1167, #1170). + +### Behind the scenes + +- The app manual's first pages, with screenshots, and a Set Region Scope guide, published to + offband.org (#1145, #1148, #1232, #1236). +- Releases are sent to Google Play from CI, only for a bundle built by the signed release run + (#1053). +- CI requires a code change to come with a test that fails on the old code (#1173). + +### Known issues + +- **Phone notifications set to Off for a channel can still notify** (#1121). +- **Contacts, including favorites, can disappear** with overwrite turned off. The new removal + log is there to find out why (#1167). +- **Factory reset from one phone leaves that radio's old data on your other phones** and PCs + (#1123). +- **On a radio with a screen but no switchable LED** (the SenseCAP T1000-E, the QCC badge, the + Heltec T096) running Offband firmware 1.7.0, the Status LED switch still appears and the + radio turns the change down (#1132). +- **A Display or LED change can be undone** by the radio's older reading arriving just after + it (#1124). +- **On a SenseCAP T1000-E, Position Reporting Interval says "Location updated"** even though + the radio refused the value (#1134). +- **On Windows, Linux and the web, a Bluetooth drop is logged without a reason**, because + those platforms don't report one (#1187).