# agent_ui: Only create ThreadHistory if agent supports it \(\#51759\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ef40f2144d080c13e918bb34722fd35855456ee1

Requested commit: ef40f2144d080c13e918bb34722fd35855456ee1

Commit: ef40f2144d080c13e918bb34722fd35855456ee1

Tree: 279b54775b6183729ff984d0ffc8b39abcb6762e

Author: Ben Brandt

Committer: GitHub

## Message

```
agent_ui: Only create ThreadHistory if agent supports it (#51759)

Rather than always having a ThreadHistory with an internal option,
changed it to be an Option<ThreadHistory> so we can better distingiuish
between an empty list and unsupported

Release Notes:

- N/A
```

## Parents

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

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