Repository navigation
fix(app): restore waiting recordings after same-account sign-in - #25214
Merged
Merged
Conversation
Builds on the closed, unmerged #24845 and adds sign-out read fencing, retained job receipts and persistence verification. Co-authored-by: cocvn157 <[email protected]>
aryanorastar
marked this pull request as ready for review
November 13, 2026 17:15
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Waiting recordings can remain parked after the process-lived ledger loads while signed out or retires its rows during sign-out. Returning to the same account now restores its inventory through the existing ledger and refreshes Home and Offline Sync. Indexed native files resolve legacy ownership before migration evidence is retired, and accepted job receipts survive preference clearing so recovery does not upload the same audio again.
Fixes #24777. Builds on closed, unmerged #24845, with cocvn157 credited as co-author. Foreign-owner rows and unresolved native-batch ownership stay parked; audio, manual holds, local-only policy and accepted job IDs are preserved.
Product invariants affected
Failure-Class: new
Root cause: ledger lifetime exceeds authentication lifetime, but load-time ownership admission had no corresponding reauthentication transition. Native migration also skipped ownership resolution for already-indexed legacy rows. The shared prevention is the ledger's explicit owner reconciliation, fenced across awaited intake and followed by provider refresh. Ordinary inventory reads cannot readmit rows while sign-out still holds the old UID. The new class points to persistence and transition tests rather than a parallel queue or uploader.
Verification
This verifies client recovery behavior with synthetic audio and job outcomes. It does not claim recovery of the reporter's original recordings, historical installed-build behavior or a shipped store release; those remain separately tracked.
UI-Evidence: none -- No visual layout or copy change; Home gains an authenticated inventory refresh. Persistence and account-transition behavior is exercised by regression tests and the native simulator lane.
Line-Count-Exception: app/lib/services/wals/local_wal_sync.dart | 2714 -> 2725 | Eleven lines wire the existing native-intake lifecycle to the account-recovery extension and fence its awaited steps; the reconciliation implementation lives in wal_account_purge.dart.