Skip to content

Save marks a note only where the pull's own render of the world's answer is the note - #42

Merged
tmoosting merged 1 commit into
mainfrom
fix/save-marks-fixed-point
Nov 27, 2026
Merged

tmoosting merged 1 commit into
mainfrom
fix/save-marks-fixed-point

Conversation

@tmoosting

Copy link
Copy Markdown
Member

What

A Save recorded the mark of the bytes it sent. A send can leave out what the note holds: a text property edited beside its ### section, a decimal keel rounds, a second link in a single-link field, a link to a note not in the world. The mark claims "overwriting this note loses nothing", so the next Download wrote over that text with no copy in Kept edits/.

The mark is now recorded only where a dry render of the world's answer (renderElementNote, the writer's own path with no write) over the note as it stands is the note:

  • only a whole answer counts: this element's id and every field of its type;
  • links are named as the pull names them (the file name of the note that holds the id);
  • the server's lines close the block in the render, as they do after a save (a note with tags is marked);
  • a note that differs from the render only in blank lines, trailing spaces or line endings is marked only when nobody typed into it since the save read it;
  • a save that left a link out marks nothing;
  • the refresh replaces the server's lines in the bytes the note holds at the write.

Checked

  • 1129 tests; the new ones go red on 3.23.0 for each of the three losses and for a partial answer, a hard break typed while the save ran, and a link left out.
  • Walked in a real Obsidian against a live world: the three losses are copied by the next Download on this build and overwritten with no copy on 3.23.0; a plain edit, a number edited through Obsidian's property writer and text typed under an empty heading stay marked (no copy).
  • Three cold reads of the callers (two model families); each round's findings are fixed.

…wer is the note

A Save recorded the mark of the bytes it sent. A send can leave out what the note holds (a text
property edited beside its section, a decimal keel rounds, a second link in a single-link field, a
link to a note not in the world), so the next pull wrote over that text with no copy.

The mark is now recorded only when a dry render of the answer (renderElementNote: the writer's own
path, no write) over the note as it stands is the note. Only a whole answer counts (this element's
id and every field of its type); links are named as the pull names them (the holding note's file
name); the server's lines close the block in the render as they do after a save; a note that
differs from the render in blank lines, trailing spaces or line endings alone is marked only when
nobody typed into it since the save read it; a save that left a link out marks nothing. The refresh
replaces the server's lines in the bytes the note holds at the write.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tmoosting
tmoosting merged commit 943a3b9 into main Nov 27, 2026
1 check passed
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