NEC-297: A drawing opened as sync writes it can fall back to a Markdown view (Excalidraw 2.27) #301
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!301
Loading…
Reference in a new issue
No description provided.
Delete branch "worktree-nec-297-a-drawing-opened-as-sync-writes-it-can-f"
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-297 — https://projectron.nerchure.com/tasks/310
A drawing opened just as sync writes it could come up as Markdown on Excalidraw 2.27.3, about once in fifty CI runs (FLAKE-15). Instrumented first: the diagnostic log now says when a drawing stops showing in its view and what the tab shows instead, the multi-vault test reports the tab's view types and console output as it opens, and an excalidraw-open-write probe rewrites a drawing inside its load with this plugin disabled (175 opens, never reproduced). A 60-iteration runner soak (run 1482) caught it: B's first write landed ~40 ms after its view was found still loading, Excalidraw logged an error, and ~240 ms later the tab was Markdown. Fix, chosen by the user: a structured write waits while an unbound open view of the file is still loading it, for at most 3 s, then writes anyway; the change waits in the document (new rule SAFE-A43). A review found the hold's start went stale when a hold ended another way; a hold not renewed within three debounces is now over, with a regression test.
Spec:
docs/changes/NEC-297-excalidraw-markdown-fallback/spec.mdChangelog
A drawing opened at the moment sync updates it no longer sometimes opens as plain Markdown.