The app logged the negotiated MTU and raw frame lengths, but never the number #592 was actually about: the composer's byte limit. The consequence showed up while working #687. We have Windows BLE logs back to August proving MTU 247, and hundreds of Android BLE sessions, and not one of them can evidence that the composer was usable, because the log records what was sent and never the limit the field applied. Logs `composer budget: frame=172 dm=156 channel=148 transport=bluetooth name="..."` beside the existing `MTU now:` line, and appends an explicit marker when the channel budget is below usable, so a collapsed composer is greppable rather than inferred. Derived from the same functions the composers call (resolveFrameBudget, maxContactMessageBytes, maxChannelMessageBytes, isComposerBudgetUsable) rather than reimplemented, so the log cannot drift from the behaviour it describes. The sender name is included because the channel budget subtracts its prefix, and an 8+ character name is what took that budget to 0 at the floor. Connect and MTU-change only. Not per keystroke or per send: diagnostics must not become the outage (SAFELANE 11 rule 10). Why it matters beyond tidiness: it converts #687 from a hardware-scheduling problem into a log-reading one. Linux (#717) and Web (#718) have no verification path today because nobody here runs either with a radio. With this, verification is "send me your debug log", which the #592 reporters have already shown willing to do. No new tests: the three numbers come from functions already pinned by frame_budget_platform_test.dart, and the added code is a log call on a path that needs a live BLE device. analyze clean, format clean, 1088 tests pass. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>release/1.6.0
parent
c458332da2
commit
c40fbba9d6
Loading…
Reference in new issue