notes
All repositories: gitoria
1.8 KB
# N1 — text from a second writer never reaches the first tab**Cause (notes' own code, components/notes.hl `settle`; not the server, not md-editor, not hl:web):** a tab keeps what it typed in `edits` and lays it over the server's list (`rowsOf`). An edit was dropped only when the server's text for that note was *exactly* the edit's text. Once another tab saved, the server text never equalled A's old (already sent) edit again, so A's stale edit stayed on top forever and hid every later text from B (server, tab C and B all had it; A only after F5). E1's "A→B 10/10, B→A never" is the same thing with roles swapped: whoever types second is the one that stays blind.Proof on the server side: a fresh third tab showed B's text; A's `edits` still held its old sent entry (probe in s/drv/probe.mjs).**Fix (.hl only, 3 lines in `settle`):** a sent edit (`sent == text`) is also done when the server's version of the note is not older than the edit (`n.edited >= e.when`). An edit still being typed (`sent != text`) is never dropped; a save that lost the race becomes the server's conflict copy as before (nothing lost); offline queue entries still lay over the list.**Gate (tests/browser.mjs, section after "one offline", `NOTES_GATE_UNTIL=twowriters`):** two real Chromes, same note, real clicks/keys into the editor: 3 rounds A types→B shows, B types→A shows; both tabs end identical with all marks; after reload of A nothing is lost. Old code (main c69ef9e + new gate): 3 FAIL ("B typed +b1, the other tab shows …+a1"); new code: 72 passed, 0 failed ×3 (69 + 3 new); theme: 22 files, 0 problems.**Real-browser (driver E1/drv/notes.mjs, copy of newest backup, own ports 8700+):** old: 1280 px B→A 0/2; new: 1280 px 6/6, 390×844 touch DPR 3 6/6 and BA order 4/4, no empty frame. Logs: N1/s/gate-old.log, gate-new{1,2,3}.log, s/shots*/ (PNG from the driver).Layout files untouched (MN's branch).
Branches
Latest commits
- 8342cd28Merge branch 'notes9-no-poll' into mainAtlas
- 1f0457a5|||PR make provisional rejected-draft setup deterministicAtlas
- 996768bf|||PR WIP sequence note creation before provisional-id adoptionAtlas
- c49ce093|||PR WIP remove notes polling and use framework reachabilityAtlas
- c028ac61Merge branch 'notes-pr7-kunibert' into mainAtlas
- 9cc92bdfKeep conflict and history fixes while awaiting queued save supportAtlas
- a5c27cb6Allow real edits back to earlier text and honor configured identAtlas
- 15c46ced|||PR Preserve note edits, conflict bases and visible historyAtlas
- 4c6e0bf6Merge branch 'notes13-day61' into mainAtlas
- eb51864f|||PR Back/Forward via navigate, server drafts, Hybriel day61Atlas
- 3537cf7eMerge branch 'vendor-day59' into mainAtlas
- c13d188b|||PR Vendor Hybriel day59Atlas
- 24c95433Merge branch 'notes17-ghost-note' into mainAtlas
- ae1075b2Preserve rejected drafts during note ID adoptionAtlas
- 383cce23|||PR Prevent saved local edits from restoring deleted notesAtlas
- 99ca1cf6Merge branch 'vendor-day56' into mainAtlas
- 649cef37|||PR Vendor Hybriel day56Atlas
- aadd0abcMerge branch 'hl-standard-2' into mainAtlas
- 52ffac9f|||PR Keyboard and reload checks for the notes gate (HL-STANDARD F21, F5)Atlas
- 617ee8c0Merge branch 'hl-standard' into mainAtlas