# assistant2: Persist threads using \`serde_json\` instead of \`bincode\` \(\#25938\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/81ff6f7a3c6f5491bd5a2186f3675cf0ff79006e)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 81ff6f7a3c6f5491bd5a2186f3675cf0ff79006e

Requested commit: 81ff6f7a3c6f5491bd5a2186f3675cf0ff79006e

Commit: 81ff6f7a3c6f5491bd5a2186f3675cf0ff79006e

Tree: 22852b6c066244fbe4e4cd9b1203234fcdf13003

Author: Marshall Bowers

Committer: GitHub

## Message

```
assistant2: Persist threads using `serde_json` instead of `bincode` (#25938)

This PR changes how we persist threads in Assistant2 to use `serde_json`
instead of `bincode` for the representation.

This makes the format more flexible to work with (and will allow for
using things like `#[serde(default)]`) if the schema changes over time.

Note: We have to bump the LMDB database version for this, so any threads
created before now will be gone.

Release Notes:

- N/A
```

## Parents

- [669082dbe065ae762e2be0effea7a23a1c53ad21](https://git.cafe/gitcafe/zed/commit/669082dbe065ae762e2be0effea7a23a1c53ad21?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/81ff6f7a3c6f5491bd5a2186f3675cf0ff79006e?format=markdown)
