You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(desktop): failed artifact overwrite can remove existing destination #4832
app:saveArtifactAs can delete an existing destination when the final replacement fails.
Reproduction
This was reproduced against the installed arm64 package Maka 0.2.0-dev.20.20260904 using the packaged Electron module (no user files or source changes). The disposable fixture starts with a destination containing ORIGINAL. The artifact is streamed completely to the staging file. The test then injects an EIO failure only for the final rename(stagingPath, targetPath).
If the rename fails, the catch block removes the staging file but does not restore or preserve the previous destination.
Expected behavior
If replacing an existing destination fails, the original destination should remain readable and unchanged.
Scope
This is a fault-injection reproduction of the final replacement step. It does not establish the frequency of real filesystem failures, and no user file was touched. The issue is data preservation during a failed overwrite, not a claim that normal exports always fail.
Activity
liugddx commentedon Sep 5, 2026
Adarsh-Me commentedon Sep 5, 2026
take
fix(desktop): make artifact export replacement safe
fix(desktop): make artifact export replacement safe
fix(desktop): make artifact export replacement safe
fix(desktop): keep the previous artifact destination when its replace…
fix(desktop): keep the previous artifact destination when its replace…
fix(desktop): keep the previous artifact destination when its replace…