# fix: require a real cookie database, gate the cap, and let a missing key retry · pingdotgg/t3code

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

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

Visibility: public

Requested revision: bda98c85f5feef61a729ffa46917fe37d8d85d4b

Requested commit: bda98c85f5feef61a729ffa46917fe37d8d85d4b

Commit: bda98c85f5feef61a729ffa46917fe37d8d85d4b

Tree: 4e6b56a838549c71ba39d1da107297e512b44bbd

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix: require a real cookie database, gate the cap, and let a missing key retry

Three review findings on the import flow:

- Profile discovery accepted any entry named `Cookies`, so a directory listed
  as an importable profile and then failed the SQLite open; the fallback scan
  and the installed check now require a regular file.
- A "new profile" target chosen before the profile cap was reached could still
  be imported once it was, creating a profile past the limit; the Import
  button now disables in that case.
- `keychainItemMissing` told the user to sign in and retry but offered no
  retry — it is now retryable, since signing in is exactly what creates the key.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

```

## Parents

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

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