# Associate each thread with a model \(\#29573\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 17903a09990ec5eae0f4f39aa806e3d106e22342

Requested commit: 17903a09990ec5eae0f4f39aa806e3d106e22342

Commit: 17903a09990ec5eae0f4f39aa806e3d106e22342

Tree: fde1ec4564bf79bdce36f68245d714d1309d9d12

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Associate each thread with a model (#29573)

This PR makes it possible to use different LLM models in the agent
panels of two different projects, simultaneously. It also properly
restores a thread's original model when restoring it from the history,
rather than having it use the default model. As before, newly-created
threads will use the current default model.

Release Notes:

- Enabled different project windows to use different models in the agent
panel
- Enhanced the agent panel so that when revisiting old threads, their
original model will be used.

---------

Co-authored-by: Richard Feldman <oss@rtfeldman.com>
```

## Parents

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

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