# test\(desktop\): cover connection catalogs orphaned by a lost safeStorage key · pingdotgg/t3code

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

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

Visibility: public

Requested revision: 0a1150e4c09f876551a21ff311ce6615e0892c33

Requested commit: 0a1150e4c09f876551a21ff311ce6615e0892c33

Commit: 0a1150e4c09f876551a21ff311ce6615e0892c33

Tree: bdbb3c4e73ab5593867ab3ebdf7f4ba9b5d3cec4

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
test(desktop): cover connection catalogs orphaned by a lost safeStorage key

Reproduces #8341: once Electron regenerates its os_crypt key, every get
fails with decrypt-catalog. The new test expects the old catalog to be
preserved, gets to read as empty, and the next save to re-key. A guard
test keeps the catalog in place when it cannot be preserved.

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

```

## Parents

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

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