Repository navigation
Recognize Journal saves before reloading a draft - #208
Merged
Merged
Conversation
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.
What changed
Connect can confirm a write without including record views in its receipt. Journal treated those completions as outside edits, persisted a review flag, and raised an unsaved-changes prompt on reload even when the original record already contained the full text.
Journal now matches confirmed receipts to the original mutation and the record's confirmed sequence. It uses the original submit revision for pending receipts and clears an existing review flag only after a clean, confirmed read of the same text. A different remote edit still triggers recovery and preserves the local draft.
Verification
npm run verifypassed all 295 tests, typecheck, and the local build.npm run build:cipassed the authenticated production build and inventory rehearsal.npm --prefix tools/smoke run test:journalpassed all three Chromium cases against the pinned SDK protocol fixture. These cover a clean online reload, offline reload and reconnect without a banner flash, and recovery when another device saves different text.da89e67, the same Chromium test reproduced one nativebeforeunloaddialog and a recovery banner before and after reload with identical confirmed text.Production retest pending.