Describe the bug
apps/desktop/src-tauri/src/extensions.rs:333 and apps/desktop/src-tauri/src/lib.rs:157-159 use fs::write directly. If the process crashes or the machine loses power mid-write, the target file is left truncated — enough to corrupt the extensions registry or a user-edited file.
Steps to Reproduce
- Start a long
write_file of a large file.
- Force-kill the process (
taskkill /F) during the write.
- Restart — the file is partially written / corrupted.
Related: same pattern in disabled_extensions.json means a crash during "enable/disable extension" leaves the registry in an inconsistent state.
Trixty Version
v1.0.10
What operating system are you using?
Windows
Would you like to fix this bug yourself by sending a PR?
Maybe
Describe the bug
apps/desktop/src-tauri/src/extensions.rs:333andapps/desktop/src-tauri/src/lib.rs:157-159usefs::writedirectly. If the process crashes or the machine loses power mid-write, the target file is left truncated — enough to corrupt the extensions registry or a user-edited file.Steps to Reproduce
write_fileof a large file.taskkill /F) during the write.Related: same pattern in
disabled_extensions.jsonmeans a crash during "enable/disable extension" leaves the registry in an inconsistent state.Trixty Version
v1.0.10
What operating system are you using?
Windows
Would you like to fix this bug yourself by sending a PR?
Maybe