Skip to content

Keep both drafts when browsers edit the same notebook text - #107

Draft
bxff wants to merge 2 commits into
mainfrom
fixes/weft-audit-browser
Draft

bxff wants to merge 2 commits into
mainfrom
fixes/weft-audit-browser

Conversation

@bxff

@bxff bxff commented Dec 1, 2026

Copy link
Copy Markdown
Owner

What changed

If a peer changed the native text while the editor was open, keep the peer text and recover the local draft rather than silently replacing it. Save a local text edit as one journal write so a failed save queues nothing and can be retried.

Verified

956 Bun tests and 36 Chromium cases passed. Independent review also passed 49 engine tests and five focused Chromium cases against a local relay and an emulated tablet. Conflicting drafts survived closing both tabs, retry after a failed local write saved exactly once, and native text formatting survived parsing.

This is a native-text editor fix. It does not change checkpoint publication or the broader offline rollout in #7. No live data or physical tablet used.

This branch has not been deployed

No deployments
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