Three gaps found in review:
- A link in brackets, "(meshcore://...)", took the closing bracket with
it and was reported as invalid. The bracket is now left out unless
the link opened one itself.
- The legacy advert form had no upper length, so a huge link from
another app was decoded in full. An advert fits in one radio packet,
so anything past 255 bytes is refused.
- A channel link with a blank name and a secret was accepted, and
would add a channel with no visible name. It is refused.
Regression tests, each failing against the code before this commit:
- meshcore_linkifier_test: a closing bracket is left out of the link.
- link_router_test: a 256-byte advert link is refused.
- channel_share_uri_test: a blank name is refused even with a secret.
Epic: #1285
Feature: #1280
Agent: StormyElk (session 088ce922)
No platform declared the meshcore scheme, so a share link tapped in a
browser or another app went nowhere.
- Android: a meshcore VIEW/BROWSABLE intent filter on MainActivity, and
flutter_deeplinking_enabled=false, which app_links needs; otherwise
Flutter treats "channel/add" as a screen to navigate to.
- iOS: CFBundleURLTypes for meshcore, and FlutterDeepLinkingEnabled=false.
- macOS: CFBundleURLTypes for meshcore.
- app_links 7.2.2 (Apache-2.0) feeds the link the app was opened with,
and later ones, to LinkRouter (#1289). Only meshcore:// links are acted
on: on web the page's own address arrives as the initial link, and an
ordinary launch must not show a link message.
Windows and Linux wait on how the app is installed (#1284).
Regression tests:
- share_link_registration_test: the three platform declarations. All
three fail against dev's manifest and plists.
- link_router_test: only share links are taken from the OS.
- link_router_host_test: a link from the OS opens the confirmation, and
an ordinary address does nothing.
Epic: #1286
Feature: #1280
Agent: StormyElk (session 088ce922)
Every share link now goes through LinkRouter, which parses it and holds
it until its confirmation can be shown. LinkRouterHost, wrapping the home
route, shows that confirmation over whatever screen is open. Nothing is
added without the user confirming.
- Channel links open the channel-add confirmation, now shared with the
QR scanner (confirmAndAddSharedChannel), which keeps the slot-after-
confirm rule from #1021.
- Contact links open the add-contact dialog, already filled in.
- The older meshcore://<advert hex> form that "Copy Advert to Clipboard"
still produces is imported through the radio after a confirmation, the
same as "Add Contact from Clipboard".
- A hashtag link needs no secret: the key is derived from the name, and
#public means the real Public channel.
- With no radio connected, the link waits, with a persistent message, and
its confirmation appears once a radio connects and, for a channel, the
channel table has settled. Only the latest link is held, in memory only.
- A malformed link gets a persistent message instead of nothing.
- A meshcore:// link in a chat message is now tappable and opens this
flow. Before, it was plain text: the URL linkifier only knows http(s).
Regression tests:
- channel_share_uri_test: hashtag links derive the reference app's keys.
- link_router_test: parsing and the holding rules.
- meshcore_linkifier_test: finding links in message text.
- link_router_host_test: wait, confirm, cancel, duplicate, malformed, and
a tap in a message.
Against dev's parser and link handler, 7 of them fail.
New strings are English only; untranslated.json updated.
Epic: #1285
Feature: #1280
Agent: StormyElk (session 088ce922)
#1279 merged with test-gate red: every test it added used the new guard
class, so none compiled against the base code and none showed the old
behavior failing.
The guard now runs inside MeshCoreApp, through StaleKeyboardInsetRepair,
and is gated on defaultTargetPlatform (not dart:io, which is never
Android in a test). A new test loads the real MeshCoreApp, hands it a
stale inset after a pause and resume, and expects a re-apply. It fails
on the base, where main() started the guard and the root widget did
not. Two more tests pin that iOS never calls the channel and that the
guard stops once the app is gone; each was proven by breaking the
condition it guards.
No change on a phone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Backgrounding the app while the keyboard animates makes the Flutter
engine re-dispatch the insets it cached when the keyboard opened
(flutter/flutter#191156, fixed upstream on master only by #191453).
Flutter then keeps a keyboard inset with no keyboard: the chat stays
shrunk and the bottom bar loses its safe-area padding.
Once metrics and lifecycle settle for 500 ms, a nonzero Flutter inset is
checked against Android's root insets. If Android says the keyboard is
hidden, the insets are re-applied (the native side re-checks the
keyboard in the same main-thread turn) and the result is checked.
Silent per Ben's decision: WARN on a repair, INFO when it clears, ERROR
when it does not or a native call fails. Remove once the pinned Flutter
contains #191453.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bar at the top of a region-scoped channel reminds the user which region its messages ride and opens Set Region Scope on tap. Dismissible for the session (in-memory, keyed by channel PSK), returns on a fresh app open. Service + widget tests; the nav test gains the new provider.
Same slot-index misbind as region scope (#1256): a sync reshuffle carried the Cyr2Lat enabled flag and profile to the wrong channel. Key both by the channel PSK with index fallback (logged) and best-effort migration. Reshuffle regression tests for enabled and profile.
A sync reshuffle moved a channel's region scope to the wrong slot occupant (Dot). Key the scope by the channel PSK like channel_message_store (#194), fall back to the index key only while the PSK is unknown (logged, never silent), and best-effort migrate existing index-keyed scopes on first read. Regression test: indices swap, PSKs stable, each scope stays on its own channel.
Plan of record for epic #1255: key region scope and Cyr2Lat by channel PSK (not slot index), best-effort migration, scoped-channel banner. Approved on merge; unlocks the feature-plan grant for #1255.
The contact-update frame carries last_advert_timestamp, which defaults
to now in whole seconds. The tests compared the whole frame the dialog
wrote with one they built afterwards, after waiting on real time, so a
second ticking over in between failed them with the flags correct. It
failed PR #1252 on the same commit that had passed on dev.
They now check the flags byte of every update frame written. With a
forced 1.1 s wait before the assertions, the old comparison fails every
time and the new one passes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Play allows one completed release per track. plan_track kept every other
release and appended the new one, so promoting 1.8.1 to Closed testing at
100 sent two completed releases (66 and 70) and Play refused it. The
first production publish at 100, or widening a staged rollout to 100,
would have been refused the same way.
A completed release now replaces the track's current completed release,
as Play Console does on a full rollout. Drafts are kept, and a release
mid-rollout still stops the publish.
FakePlay now refuses two completed releases with Play's message. That
made two existing tests fail (promote straight to production, widening a
rollout): they had been passing with a release list Play rejects. New
tests cover the v1.8.1 case and a draft next to a completed release.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the release run's macOS lane fails on our own workflow, a re-run
uses the tag's copy of the files, so the fix can't reach that release.
macos-manual.yml runs from main with a tag input: it checks that only
.github/ and docs/ differ from the tag (so the zip is the tagged app),
that the release exists and has no macOS zip yet, then calls
macos-signed.yml unchanged and attaches the notarized zip.
build.yml proves the check in a throwaway repo on every PR: it accepts
the tag itself and a CI/docs change, and refuses an app or pubspec
change and anything that isn't a real release tag. The test fails
against a check that accepts everything.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
altool 26.40.1 reports a pass with a warning as "VERIFY SUCCEEDED with
no errors, 1 warning" and "No errors, 1 warnings, validating archive".
The check accepted only "VALIDATION SUCCEEDED" or "No errors validating",
so it refused the v1.8.1 IPA that Apple had validated, and nothing was
uploaded to TestFlight. Any output with an error line is still refused.
build.yml's altool test now covers validate as well as upload, with the
real v1.8.1 output as a must-accept case. It fails on the old script.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Direct is described as removed because Auto already does its job, in the
Play text, release notes and announcements. Discord says 1.8.1 is out for
beta testers on the Play test track and TestFlight, and the announcements'
Get it lines say the same.
STORE-DISCLOSURES.md now records what the owner entered on 2026-11-27:
Developer communications added for name and email on Play, why Apple's
optional-disclosure rule doesn't cover the four log types (automatic
sending), and that App Store Connect published as each type was saved.
Tracker #1239.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Version 1.8.1+70 on release/1.8.1, from dev at 70946f67 (22 PRs since
v1.8.0). Adds the gate texts: CHANGELOG [1.8.1], release-notes/1.8.1.md,
play/1.8.1.txt (484/500, covers everything since the last production
release, 1.8.0), discord/1.8.1.md and announcements/1.8.1.md.
Tracker #1239.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Flutter toolchain rewrites seven checked-in generated files on every
`pub get` and every build. On a Windows checkout with core.autocrlf=true
git checked them out as CRLF while the index held LF, so after each flutter
invocation they showed as modified, and `git rebase` refused with "cannot
rebase: You have unstaged changes" until someone restored them. That
happened three times in one session during PR #1235.
`text eol=lf` on those paths makes git check them out as LF, which is what
the toolchain writes, so the two agree and the churn stops.
Verified rather than assumed: re-materialized the seven under the new rule
(w/crlf became w/lf), then ran `flutter pub get` twice. Both times the
seven stayed out of `git status`.
Scoped to these paths deliberately. A repo-wide `* text=auto` would
renormalize every tracked text file in one commit, colliding with whatever
other branches have in flight and changing checkout behaviour for
contributors on other platforms.
While testing this, `untranslated.json` turned out to be a SECOND and
unrelated cause, so it is deliberately not in the rule:
git hash-object --path untranslated.json -- untranslated.json
git rev-parse :untranslated.json
both 47cfb36de8, both 248185 bytes
It is byte-identical to the index and already w/lf, so a line-ending rule
cannot affect it and adding one would be a no-op. `flutter gen-l10n`
regenerates it with identical content and a fresh mtime, git flags it on
stat, and `git update-index --refresh` reports "needs update" without
clearing it. `git add untranslated.json` clears it and stages nothing,
which confirms there is no content change and gives a one-command
workaround when it blocks a rebase. Recorded on #1238; not fixed here.
Both from the adversarial review gate, both regressions this branch
introduced rather than pre-existing faults.
1. `timeoutMs` reaches updateMessageFromSent as a raw readUInt32LE off the
RESP_CODE_SENT frame with nothing bounding it. While the local
computation overwrote that value it did not matter; making the radio's
estimate a floor meant a garbage frame could arm a timer 49 days long,
and one message in flight per contact is a queue invariant, so that
wedged every later DM to that contact until an app restart. Clamped to
60 s, about four times the longest real round trip in OB-ZRNBY.
2. The pinned-route write was gated on `message.retryCount == 0`, so a user
changing the override between attempts left the radio transmitting the
old pin while this side had already re-armed its timeout and its
path-weight bookkeeping for the new one. `updatePendingContact` hands the
new override to the retry in flight, so attempt 0 is the wrong key. Now
keyed on the route itself: a change is written, an unchanged pin is not.
That keeps it from becoming the per-attempt re-assert #1198 removed.
Tests, both proven to fail first: 4294967295 ms armed where 60000 was
required, and the new pin never reaching the radio. The unchanged-pin case
is covered too, at maxRetries 3 so the retry under test is an ordinary
attempt rather than the final flooding one, which would have passed for the
wrong reason.
Third review finding, not fixed, justified: existing installs without a
stored `max_message_retries` move from 5 attempts to 3 on upgrade. That is
the ruling, it applies to everyone by design, the slider still spans 2 to
10, and the total time to failure is comparable because the window widened.
Upload OB-ZRNBY carries 24 completed round trips as measured by the radio
in PUSH_CODE_SEND_CONFIRMED: median 6771 ms, p90 12394 ms, against windows
this code armed with a median of 4884 ms. Over half of all ACKs arrived
after the attempt that earned them had timed out. 83 DMs cost 311
transmissions, 46 reached the final attempt and 23 were shown as failed.
Owner ruled p90 rounded up, 12.5 s, with three attempts rather than five.
Three changes:
1. A floor of 12500 ms on the window actually armed for a DM's ACK, in
MessageRetryService. The airtime formula under-predicts because airtime
is the wrong dominant term: on a multi-hop mesh the time goes into
repeater forwarding delay and TXT_ACK_DELAY, and no coefficient on
airtime fixes that.
2. The radio's own est_timeout from RESP_CODE_SENT is a floor, not a
second opinion. It was overwritten outright by the local computation,
which is how a 3252 ms radio estimate became a shorter local window and
lost an ACK that came back at 3448 ms. Now max() of the two, then the
floor.
3. Three attempts, not five. At the wider window three attempts give up
after about the same elapsed time as five at the old one, while putting
roughly 40% less traffic on a shared mesh. It also keeps every attempt's
ACK hash distinct: the firmware masks `attempt & 3`, so attempt 4
collided with attempt 0 and the first and last attempts were
indistinguishable.
The floor deliberately does NOT live in calculateTimeout. That method also
feeds calculateCliTimeout, and flooring it there added 11.5 s to every
repeater CLI command and broke eight #533 tests: a separate surface with
its own budget arithmetic that nobody ruled on.
Tests, all four proven to fail first with real numbers: the formula armed
1300 ms for a flood and 1050 ms for a zero-hop send; maxRetries read 5;
the radio's 14000 ms estimate was replaced by a 1200 ms local guess. Also
asserts the formula is still unfloored so the CLI budget stays put, and
that attempts 0 to 2 keep distinct ACK hashes while 4 collides with 0.
A test seam lowers the floor, since a 12.5 s wall-clock wait per attempt
is not something a unit test can drive.
One test was written, passed against the reverted code, and deleted rather
than kept: that a short text cannot buy a shorter window than a long one.
_estimateAirtimeMs falls back to a fixed 50 ms when the radio parameters
are unset and there is no seam to set them, so it passed for the wrong
reason. The gap is recorded in the test file instead.
Not in this change: extending the 30 s late-ACK grace. The 76521 ms sample
in the capture says the tail exceeds it, but that sample may be a
store-and-forward delivery rather than a live round trip and it has not
been checked.
Ben read "Retry 4/5" on a failed DM and concluded the fifth attempt never
ran. The log from OB-3UJZR proves it did: at 17:38:38 the client sent
CMD_RESET_PATH and then attempt 4, so the flood fallback fired exactly as
ruled. The label was wrong, not the loop.
`retryCount` is a zero-based attempt index and `maxMessageRetries` is a
count of attempts, so the chat label printed one against the other. The
fifth and final attempt of five read as "4/5", which reads as a sixth
attempt still to come.
The AckHash log line had the same fault twice over: it printed the raw
index, and it said "retrying" on the final timeout, when the message is
in fact being marked failed. Both now read from 1 and say which it is.
No l10n change: `chat_retryCount` keeps its "Retry {current}/{max}" form
in all 18 locales and only the number passed in changes.
The flood fallback clears the stored path on the radio, so without this a
hand-picked route stopped being honoured after one bad send while the UI
still claimed it. That is the silent failure that got "Direct" removed,
so leaving it was not an option. Owner ruled option (a): re-push the
override once at the start of each send.
This is not the defect #1198 removed. That was a client-side snapshot of
a path the RADIO had learned, re-asserted before every attempt, able to
overwrite a fresher route the radio had just picked up off the air. This
is the user's own explicit choice, written once, at the start of a send,
and it has to be written because the previous send's final attempt may
have cleared it. One write per send, never one per attempt.
`RetryServiceConfig.setContactPath` now carries `hashWidth`. The callback
dropped it, so a 2-byte route would have been written at width 1 and
re-read as twice as many 1-byte hops, routing to the wrong nodes (#279).
That trap was latent while no path write existed on this path; adding one
back makes it reachable, so the signature closes it.
Tests: a pinned route is written exactly once per send and at the width
it was captured at, and the retry after it writes nothing.
Clearing the stored path and flooding is the only recovery the wire
protocol offers: the radio routes a DM direct whenever it holds a path,
there is no per-send routing field, and flood is how the mesh teaches it
a new route. That makes the fallback part of sending a DM, not a
preference. Owner rulings on #1222:
R1(b): `autoRouteRotationEnabled` is deleted rather than flipped. It
shipped false, so the fallback was unreachable out of the box. Deleting
it also un-hides the route-weight and "Max Message Retries" sliders,
which were behind that toggle while their values applied to every send
regardless. `preparePathForContactSend` keeps flag-off behaviour
explicitly: dropping the gate there would have switched repeater, room
and telemetry command sends over to rotated paths, which nobody ruled on.
R2(a): "Direct" is removed. A forced zero-hop path bought no
reachability, because a DM is matched on the destination hash with no
check of route type or path position, and Auto already settles on zero
hops for a real neighbour. What it did buy was a sticky mode that
suppressed the fallback and failed silently once the contact moved out of
range. A zero-hop override is normalised to Auto at every entry point:
setPathOverride, both contact stores on load, path resolution, and the
labels. Nobody is stranded in a mode the UI no longer offers.
R3(b): `clearPathOnMaxRetry` is retired. It fired after the last attempt
had already failed, so it could only ever help the next message, and the
final attempt now clears the path itself.
R4(a): the final attempt floods even for a hand-picked path. An override
still chooses the route for every earlier attempt.
Tests, three of four proven to fail against the old gating: the selector
runs with no settings service wired at all (was skipped entirely), a
zero-hop override does not suppress it, the fallback does not depend on
the path-history service existing, and an override floods on its final
attempt while writing no path to the radio.
Not in this change: the dead l10n keys the removed toggles leave behind,
and what should re-establish a user's pinned route after the final flood
clears it on the radio. Both noted on #1223.
test-gate needs a test that runs on the base code and fails there; the
helper test cannot compile against the base. This one uses only base APIs:
a fake Bluetooth platform holds the connect open, so the connectionState
listener is live, then reports `disconnected`.
- A drop of an established link writes one "BLE link dropped" line. It
fails on the base, where the listener logged nothing.
- A disconnect before the link is up writes none (the isConnected guard).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A user's iPhone dropped its BLE link 44 times in 3 hours, and no log line
said why. Every drop came from the OS through the connectionState
listener, which ended the connection without recording a reason.
Each OS-reported drop now writes one line:
- the platform's disconnect reason (the CoreBluetooth code on iOS and
macOS, the HCI status on Android),
- the seconds since the last frame from the radio,
- the app lifecycle state.
Windows, Linux and web report no reason, and the line says "not
available on <platform>" (#1187 tracks getting a real one there). The
reason is read one microtask after the event, because flutter_blue_plus
records it in its own listener on the same event.
main.dart logs every app lifecycle change and passes the state to the
connector, so a drop can be lined up against iOS backgrounding the app.
Diagnostics only: the disconnect and reconnect flow is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bar out message content, sender and repeater/node names, and routing path hashes behind the dialog and in the repeater list. Keep the UI, icons, checkmarks, flow markup and region names.
Dedicated page walking through discover, select, save and remove, with annotated Android screenshots. Linked from the manual index and the channels guide.
Gemini review: anyone with the public key can upload, so sender.json over 4 KB is ignored and a package that would unpack past 1 GB is refused before anything is written. A relative answer from an old git is refused rather than guessed at. Each new test failed with its guard removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first real pull (OB-3UJZR) unpacked into the worktree the tool ran
from, where it would have been lost with the worktree. The tool now
finds the main checkout from git's common dir and writes to its
debug_logs; OFFBAND_LOG_DIR overrides that.
Folders are named like the owner's existing ones: date, code, then the
sender's name from the sealed sender.json (#1190 decision). The name is
untrusted, so anything a folder name cannot hold is dropped. The
sender's name and email are printed after a pull, or "No contact
details given".
A 401/403 from Cloudflare now says the token lacks R2 read rather than
dumping a traceback. The header says how to install cryptography.
The new tests fail against the previous tool; the location test also
fails when the tool resolves git's per-worktree dir instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner correction 2026-11-26: keys live in C:\Dev\.keys, not the user profile. OFFBAND_LOG_KEY overrides the path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/logs/offband_logs.py: keygen makes the owner key pair once and refuses to overwrite it (#1216); list shows intake issues not yet labeled seen; pull finds the stored object named on the intake issue, downloads it over the Cloudflare API, decrypts it, unpacks it into debug_logs/OB-XXXXX/ and only then labels the issue seen and comments. A wrong key, an altered byte or a zip member pointing outside the folder fails before anything is written or marked. Tests open the same Python-reference vectors the Dart encoder matches, and run in the required analyze job.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner decision on #1190 (2026-11-27): a sender may give a name and email so the owner can follow up. Play gains Personal info: Name and Email address, optional; App Store gains Contact Info: Name and Email Address, linked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner decision 2026-11-26, option B. Also moves the plan's key location to C:\Dev\.keys (owner correction).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Messages, precise location, crash logs and diagnostics become collected, optional, encrypted in transit, deletable on request, for app functionality, never shared or used for tracking. Neither store can be set from here (the Play service account has release permissions only, and App Store Connect has no privacy-label API), so the owner pastes them in the release that ships the feature. One call left for the owner: whether the App Store label marks the data linked to the user.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A banner above the app on the next launch: Send (opens Send to Offband), Not now, Don't ask again. "Send crash logs automatically" is off unless turned on; when on, a definite failure is sent without asking and the banner appears only if that send fails. An exit that cannot be placed is always asked about, never sent automatically. Both switches are in the Debug settings. New strings English only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A run marker records whether the app is on screen and whether an unhandled Dart error happened; a clean exit removes it (awaited before a desktop window closes). At the next start, a marker left on screen is an unexpected exit, one left in the background is the OS reclaiming memory and is not offered, and an unreadable one is asked about. New Android ANR and crash exit records (not backfill) name the failure. Failed image loads do not count. On web only an unhandled error counts, since closing a tab is not an exit Flutter sees.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gemini review: the fake package only passed because no path decoded it. The tests now use a real zip with a traces/ entry, and check every original entry survives adding sender.json unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner decision on #1190 (2026-11-27): a sender can leave a name or
screen name and an email so the owner can follow up. Both are optional,
with a note that without them we cannot reach the sender with an update.
They go into the encrypted package as sender.json, never into a header,
so the plain-text intake issue never shows them. With both empty the
package goes out byte-identical to before. A mistyped email blocks the
send and says why rather than sealing an address nobody can use.
Both new tests were run against code with the sender dropped and the
email check removed, and failed; the rest of the suite still passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Next to Share on both log screens and in the Debug settings. It says what is sent (messages and radio traffic, passwords and PINs removed), that only Offband can read it and that it is deleted 30 days after review, takes an optional note, and shows the reference code with Copy. A failure stays on screen with its reason and Retry resends the kept package. New strings are English only; untranslated.json is updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>