notes
All repositories: gitoria
#8Preserve note edits, conflict bases and visible history
mergednotes-pr7-kunibert → mainby · head 9cc92bdf
- successKunibert: kunibertKunibert review
Verdicts
- Kunibertapproved
People’s approvals
Reviews
Kunibertappapproved9cc92bdf · current head · 2026-11-12 14:08:58 UTC
T2 is resolved by restoring the existing debounced save path. No new findings remain in the final PR scope.
Correctness (0 new, 0 still open)
The per-keystroke queue-growth regression is removed; no remaining correctness findings.
Spec (0 new, 0 still open)
No spec findings because no linked feature ticket defines additional requirements.
Standards (0 new, 0 still open)
No violations of the applicable documented rules were found in the remaining changes.
Gates: not run
Kunibertappapproveda5c27cb6 · earlier head · 2026-11-12 14:06:03 UTC
T1 and T3 are fixed, with no new findings in the delta. T2 remains blocking because per-keystroke full-note queue growth is unchanged.
Correctness (0 new, 1 still open)
The edit-return and ident-path fixes address T1 and T3. T2 remains a major offline-editing performance regression.
Still open from earlier rounds:
- T2 components/notes.hl:310 no rule: Coalesce superseded offline saves
Spec (0 new, 0 still open)
No spec findings; no linked feature ticket defines additional requirements.
Standards (0 new, 0 still open)
No new violations of the applicable documented rules were found.
Gates: not run
Kunibertapprequested changes15c46ced · earlier head · 2026-11-12 13:31:53 UTC
The input changes can discard deliberate edits and cause excessive offline queue growth. The new regression scripts also bypass supported ident-path configuration.
Correctness (3 new, 0 still open)
Three findings: lost edits after remote updates, full-note snapshots on every keystroke, and hard-coded fixture paths.
Spec (0 new, 0 still open)
No spec findings because no ticket or issue is linked for this review.
Standards (0 new, 0 still open)
No new violations of the applicable documented rules were found.
Gates: not run
Threads
components/notes.hl:303outdated · resolvedKunibertcomponents/notes.hl:310outdated · resolvedKunibertKunibert2026-11-12 13:31:53 UTC
🔶 Major · Correctness: no rule: Coalesce superseded offline saves
Each input now appends a full-text queue entry. A valid 190,000-character note plus 1,000 offline keystrokes retains about 190 MB of payloads; hl:web's
syncQueued()rereads and parses the entire queue after each addition, and reconnect replays every snapshot. This makes long-note editing increasingly expensive. Coalesce superseded unsent saves per note while immediately preserving the newest input.Kunibert2026-11-12 14:06:04 UTC
Still open: hybriel#390 and the standalone check document the problem, but every input still queues a full-note snapshot. Framework support must address this growth before merging the behavior; keeping the check outside GATES does not fix it.
Kunibert2026-11-12 14:08:58 UTC
Resolved: removing the input-time flush restores debounced saves and eliminates the per-keystroke snapshot growth introduced by this PR.
tests/pr7-regressions.mjs:20outdated · resolvedKunibertKunibert2026-11-12 13:31:53 UTC
🔹 Minor · Correctness: no rule: Honor the configured ident checkout
Both new scripts hard-code this developer path, including
tests/waiting-hybriel-388.mjs:22. They ignoreNOTES_GATE_IDENT_DIRand the sibling-checkout fallback used by existing gates. Other supported layouts therefore fail with ENOENT despite valid configuration, and the newly mandatory regression gate blocks deployment. Reuse the existing ident lookup in both scripts.Kunibert2026-11-12 14:06:04 UTC
Fixed: both scripts now honor NOTES_GATE_IDENT_DIR and the sibling-checkout fallback.
Conversation
Nobody has written here yet.
Only the owner and the members of this repository can comment here.
Kunibert2026-11-12 13:31:53 UTC
🔶 Major · Correctness: no rule: Preserve real edits that repeat previously saved text
Save
abc, receive remoteabcd, then press Backspace. MdEditor announcesabc, butlastInputstill contains the previously acceptedabc, so this returns without creating or queueing an edit. Reloading loses the deletion. Scope duplicate suppression to an announcement/version rather than remembered text, and cover this real-input sequence.Kunibert2026-11-12 14:06:04 UTC
Fixed: trusted gestures advance inputVersion, allowing Backspace to return to previously saved text. The new regression exercises this sequence.