# fix\(desktop\): a connection catalog orphaned by a lost safeStorage key no longer blocks saved environments · pingdotgg/t3code

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

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

Visibility: public

Requested revision: eaa20f063e343bd750a911db292b94c9c8072865

Requested commit: eaa20f063e343bd750a911db292b94c9c8072865

Commit: eaa20f063e343bd750a911db292b94c9c8072865

Tree: 938d1ffa2787d5493b4311149aec0ebf6f090816

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(desktop): a connection catalog orphaned by a lost safeStorage key no longer blocks saved environments

When Electron regenerates its os_crypt key, the catalog can never be
decrypted again and every read failed, so targets could not be listed or
added. Reads now copy the old ciphertext to a content-named
.undecryptable backup, warn, and return empty; the next save re-encrypts
with the current key. If the backup cannot be written, the read fails
and the catalog stays untouched.

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

```

## Parents

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

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