# Improve persistence and runtime SQLite compatibility · pingdotgg/t3code

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

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

Visibility: public

Requested revision: 78b70700424d583ba61b47a5f6aa55a43d5f4dce

Requested commit: 78b70700424d583ba61b47a5f6aa55a43d5f4dce

Commit: 78b70700424d583ba61b47a5f6aa55a43d5f4dce

Tree: 21d9d9a2a7b80fa6913b0c7f4b1f1cf71296efec

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Improve persistence and runtime SQLite compatibility

- add a SQLite adapter that works in both Bun and Node/Electron, with tests
- persist and backfill `assistantMessageId` on turn summaries to keep thread diffs linked
- prevent web state regressions by preserving turn summaries and deduplicating terminal/settings sync updates

```

## Parents

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

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