NEC-284: A tab reused twice within a moment backs up typing with no reason, in a round with no conflict #294
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
e2ee-constrained
gate:at-ga
gate:pre-ga
marketing
parity
relay:absent
relay:planned
relay:requested
relay:supported
risk:additive
risk:contract
risk:none
usability
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Nectenda/nectenda!294
Loading…
Reference in a new issue
No description provided.
Delete branch "worktree-nec-284-a-tab-reused-twice-within-a-moment-backs"
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-284 — https://projectron.nerchure.com/tasks/295
When the plugin lets go of an editor, it now saves it first. Obsidian merges a file change into a view with unsaved text three ways against what that view last loaded or saved; a collaborator's line reaches a bound editor through yCollab, so that base predates the line until Obsidian's own save about two seconds later. Let go of in that window, for a second tab reused for the note, the view kept the stale base, and Obsidian's save of the second tab was merged into it as a second copy of the line: bound again at once, its typing went to a backup for no reason (the Markdown hardness run, seed 196796986, round 306); left unbound, its next save wrote the duplicate into every vault. New rule SAFE-B6, unit tests in editor-bridge.test.ts, two e2e cases in multi-pane.test.ts (each fails on its first attempt without the save), and the hardness replay now passes past round 306.
Spec:
docs/changes/NEC-284-save-an-editor-as-it-is-let-go/spec.mdChangelog
A collaborator's line could appear twice in a note after the editor moved between two tabs on it within a moment; it is now kept once.