Repository navigation
fix(app): let Transfer to Phone move a Limitless recording after the pendant is listed again - #22895
Conversation
…pendant is listed again FlashPageWalSyncImpl.syncWal looked the recording up by object in its list. That list is rebuilt with new Wal objects when the pendant connects, on every discovery wake and after each sync pass, while the recording page keeps the Wal it was opened with. Since BasedHardware#22417 the relisted recording keeps its id, but the lookup by object still found nothing, so Transfer to Phone failed with "Device recording list changed; go back and try again" for a recording that was still listed. Match by id and storage, as deleteWal and the SD card sync (BasedHardware#22414) do, and run the transfer on the listed entry. A recording that is no longer listed still fails without asking the pendant for audio.
|
The fix is correct and nicely scoped — matching the relisted recording by id instead of object identity, with the failure path preserved. Nothing blocking.
Blast radius: if the id match ever missed, the failure mode is the same exception as today — no new data-loss path. No new surfaces; pure lookup change inside the existing BLE sync path. USER IMPACT: Transfer to Phone on a Limitless recording now succeeds even if the pendant reconnected or woke since the recording page was opened, instead of failing with "Device recording list changed". Nothing further needed from my side — leaving the merge call with the requested maintainer. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Scoped bug fix: WAL lookup by object identity misses rebuilt list after pendant relist/reconnect; now matches by id+storage like deleteWal already does. Test reproduces failure on main, CI green.
What's wrong
Transfer to Phone on a Limitless recording fails with "Device recording list changed; go back and try again" whenever the pendant has been listed again since the recording page opened. The page passes the
Walit was opened with, andFlashPageWalSyncImpl.syncWallooked it up by object:Walhas no value equality, and the flash-page list is rebuilt with newWalobjects on connect, on every discovery wake and after each sync pass. Since #22417 the relisted recording keeps its id, so the page and the list name the same recording, but the lookup by object misses it. Going back and trying again only works until the next wake.This is the instance of
FC-wal-lookup-by-object-misses-rebuilt-listthat #22414 fixed for the SD card sync, on the Limitless side.deleteWalin the same file already matches by id.Change
syncWalmatches by id and storage, as the SD card sync does, and runs the transfer and its state changes on the listed entry, which is the one the sync pages read. A recording that is no longer listed still throws, so the page never reports a transfer that did not happen.Tests
test/unit/legacy_storage_limitless_seam_test.dart:flutter test test/unit/legacy_storage_limitless_seam_test.dart test/unit/flash_page_wal_listing_test.dart test/unit/flash_page_stall_classification_test.dart: 24 passed. Fullbash test.sh: 6,744 passed, 23 skipped, exit 0.Product invariants affected
app/lib/services/wals/flash_page_wal_sync.dart). Only which listed entry a transfer runs on changes. Audio is still ACKed off the pendant only after it is saved on the phone, a cancelled or stalled transfer still keeps the recording on the pendant, and an unlisted recording never starts a transfer.UI-Evidence: none -- no new UI; the existing Transfer to Phone result is now correct, and the seam test drives the real transfer path with a fake pendant.
Failure-Class: FC-wal-lookup-by-object-misses-rebuilt-list