# Avoid constantly scrolling thread history to top as agent generates \(\#54365\) · gitcafe/zed

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

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

Visibility: public

Requested revision: aa5293de22bba11777956f1d6e8169118249fb3e

Requested commit: aa5293de22bba11777956f1d6e8169118249fb3e

Commit: aa5293de22bba11777956f1d6e8169118249fb3e

Tree: a7e07337c9e5f638b3c16e4b8622df5751832d3c

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Avoid constantly scrolling thread history to top as agent generates (#54365)

Fixes two problems:

* We were not preserving scroll position in the thread history view when
the thread metadata store updated
* We were updating thread metadata on every single chunk streamed by the
agent, even though the content of the thread does not affect its
metadata.

Release Notes:

- N/A
```

## Parents

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

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