# Load Profile state from Thread and tie visibility to the thread's model \(\#30090\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3615d6d96c5d1c8fd0ccb1ee0bc176e9c94ac730

Requested commit: 3615d6d96c5d1c8fd0ccb1ee0bc176e9c94ac730

Commit: 3615d6d96c5d1c8fd0ccb1ee0bc176e9c94ac730

Tree: 4526850a688a2e93f49c62193bc6c8c11e42a5a2

Author: Ben Brandt

Committer: GitHub

## Message

```
Load Profile state from Thread and tie visibility to the thread's model (#30090)

When deciding if a model supports tools or not, we weren't reading from
the configured model in a given thread.

This also stores the profile on the thread, which matches the behavior
of the Model and Max Mode, which we also already store per thread.

Hopefully this helps alleviate some confusion.

Release Notes:

- agent: Save profile selection per-Agent thread
```

## Parents

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

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