Atomic .docx writes, fix .lily race, lint cleanup #62
Loading…
Reference in a new issue
No description provided.
Delete branch "bug-reliability-scan"
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?
Summary
.docxwrites — all sevenfs::writesites indocx_ops.rsnow route through a newlily_file::atomic_write_bytes, so a crash mid-save can no longer leave a user's document truncated..lily, settings, and questionnaire writes already had this guarantee;.docxdid not..lilydouble-read race innew_version_document— the function was reading the.lilyfile, copying the source document, then dropping and re-reading the.lily. Tauri commands run on a thread pool, so a concurrent writer between those two reads would have its changes silently clobbered. Mutate the value from the first read instead.make lintnow exits clean (was failing on cargo build artifacts because"!target"didn't match nested target dirs). Removed 25 stalebiome-ignorecomments (suppressing rules already disabled in config), a chain of deadonReloadLilyFile/reloadLilyFileplumbing throughClientsHub.tsx, an unusedclientValueprop onLinkedVariableField, several other dead locals/imports/destructures, and a useless try/catch wrapper.Test plan
make checkmake typecheckmake lint(now exits 0)make test— 93/93 passing.docxsaves cleanly.lilyrecords it