-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix WAL sync: durable conversation linkage, startup recovery, accurate indicator #6330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+803
−43
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
c0a0557
Add conversationId + retry metadata to WAL model (#6318)
beastoin 64a4ea7
Add finalizeCurrentSession, stampConversationId, orphan recovery to L…
beastoin 751a8f3
Add durable auto-sync: finalize+stamp on session end, fallback timer,…
beastoin 26dc724
Include in-flight audio seconds in WAL indicator (#6318)
beastoin 3e90e6c
Add 12 unit tests for WAL recovery: model, stamp, orphan, in-flight, …
beastoin be4bf7c
Fix review findings: shouldStored gate, const list mutability, typing
beastoin 1bb8771
Fix capture_provider: typed phoneSync, delayed orphan recovery
beastoin 85863d7
Update tests for shouldStored gate and synced-frames skip
beastoin 94a7230
Add walReady Completer so recovery waits for WAL initialization (#6318)
beastoin 2d60423
Fix race, offline retry, and WAL readiness in capture provider (#6318)
beastoin f889b2d
Fix offline recovery retry and persist retry metadata per attempt (#6…
beastoin 2278b2c
Handle partial sync failure in _syncSingleWal recovery path (#6318)
beastoin 9403a54
Fix retry budget durability and mark unrecoverable WALs corrupted (#6…
beastoin 1abb63b
Re-arm orphan recovery when WALs remain after transient failures (#6318)
beastoin 1292f91
Add boundary tests: threshold edges, stamp window, walReady (#6318)
beastoin 77c4c10
Polish WAL sync status widget: green dot, cloud icon, brighter text (…
beastoin ab08bdb
Add WAL widget polish screenshot evidence (#6318)
beastoin ae2a152
Remove 'will sync automatically' text, add loading spinner when synci…
beastoin 98a397f
Remove .pr-evidence directory, use GCS for screenshot hosting (#6318)
beastoin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_finalizeAndStampSessionrace withConversationEvent_finalizeAndStampSessionis fired-and-forgotten at line 1127, thenConversationEvent(which often follows in seconds) cancels the fallback timer and calls_autoSyncSessionWals. If_flush()insidefinalizeCurrentSessionhasn't completed yet whenConversationEventarrives, the freshly drained WALs are stillWalStorage.memandgetSessionUnsyncedWals(which filters forWalStorage.disk) silently returns empty — with the fallback timer already cancelled, the WALs won't auto-sync until the next app startup._finalizeAndStampSessionshould be awaited before starting the fallback timer, or_autoSyncSessionWalsshould be chained to its completion rather than invoked independently in theConversationEventbranch.