Skip to content

Recognize Journal saves before reloading a draft - #208

Merged
callumalpass merged 1 commit into
mainfrom
journal-save-reload-false-conflict
Nov 28, 2026
Merged

callumalpass merged 1 commit into
mainfrom
journal-save-reload-false-conflict

Conversation

@callumalpass

Copy link
Copy Markdown
Member

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 verify passed all 295 tests, typecheck, and the local build.
  • npm run build:ci passed the authenticated production build and inventory rehearsal.
  • npm --prefix tools/smoke run test:journal passed 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.
  • On da89e67, the same Chromium test reproduced one native beforeunload dialog and a recovery banner before and after reload with identical confirmed text.

Production retest pending.

@callumalpass
callumalpass enabled auto-merge (squash) November 28, 2026 13:48
@callumalpass
callumalpass merged commit a112ead into main Nov 28, 2026
1 check passed
@callumalpass
callumalpass deleted the journal-save-reload-false-conflict branch November 28, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant