NEC-363: A second property set within 1.5 s on an open note is lost silently #328
No reviewers
Labels
No labels
area:docs
area:identity
area:ops
area:plugin
area:server
channel:community
channel:direct
channel:owned
channel:press
channel:social
dependencies
e2ee-constrained
gate:at-ga
gate:pre-ga
marketing
parity
relay:absent
relay:planned
relay:requested
relay:supported
risk:additive
risk:contract
risk:none
security
usability
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Nectenda/nectenda!328
Loading…
Reference in a new issue
No description provided.
Delete branch "worktree-nec-363-bound-rewrite"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Task: NEC-363
A property set on an open note 0.6 s after another was lost silently, in no file and no copy in either vault. The Markdown hardness run on the 0.6.0 candidate found it (seed 1339151073, round 65, on every replay).
Cause. A file change met while a note is bound in its editor is watched and merged in after 1.5 s (NEC-213), unless Obsidian rewrote the editor in the 1.5 s before. In that case the rewrite is taken as the reload that carried the change in. Any rewrite in the window counted, including one that had already carried in the previous change. Instrumented, the log showed no rewrite between the second change and the editor letting go.
Fix. A rewrite answers for one change only. It is used up by the first change read after it, whichever way that change is read, and a rewrite that carried a waiting change in is not remembered at all. The log now says when a change is taken as carried in by a rewrite.
Evidence
content-sync-record.test.ts. Both fail onorigin/main, and each fails when its own half of the fix is taken out. The existing tests against a double merge after a real reload still pass.49104cfa, every step but e2e.Still open (
docs/sync-limitations.md, entry now "mitigated"): the rewrite signal cannot tell a reload from another pane mirrored in. Not seen.The same seed then failed at round 245 for an unrelated reason, filed as NEC-364: a Kanban view writing over another tool's card while sync was stopped.
Changelog
A property set on a note that is open in an editor, for example by another plugin, is no longer lost when the editor does not take it in.
🤖 Generated with Claude Code
https://claude.ai/code/session_01P5JXvAgQ27c4dMFDB2Wu5B