# agent: Thread history update improvements \(\#30415\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 82d271cb5b4de4d2e33c447fb2f28eacb7ca6693

Requested commit: 82d271cb5b4de4d2e33c447fb2f28eacb7ca6693

Commit: 82d271cb5b4de4d2e33c447fb2f28eacb7ca6693

Tree: 88808657d8f4b70f361f7768277ec5fc6b5a824b

Author: Agus Zubiaga

Committer: GitHub

## Message

```
agent: Thread history update improvements (#30415)

- Try to preserve previously selected item on update
- Do not clear list items while updating to avoid a frame with no items
rendered

Release Notes:

- agent: Preserve previously selected item in Thread History on update

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
```

## Parents

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

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