# fix\(desktop\): the undecryptable catalog backup keeps the original even if a save lands mid-read · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/741cfc9f9fc325086ec8604c333dacbfc8d0caf2)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 741cfc9f9fc325086ec8604c333dacbfc8d0caf2

Requested commit: 741cfc9f9fc325086ec8604c333dacbfc8d0caf2

Commit: 741cfc9f9fc325086ec8604c333dacbfc8d0caf2

Tree: 82b5d6586f56481cb19e1537c3fbe71883ee44c7

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(desktop): the undecryptable catalog backup keeps the original even if a save lands mid-read

The backup copied whatever file sat at the catalog path after decryption
failed, so a concurrent save could be backed up under the original's name
and the original lost. Write the document that failed to decrypt instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [eaa20f063e343bd750a911db292b94c9c8072865](https://git.cafe/pingdotgg/t3code/commit/eaa20f063e343bd750a911db292b94c9c8072865?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/741cfc9f9fc325086ec8604c333dacbfc8d0caf2?format=markdown)
