# Scroll to bottom when reloading ACP agent threads \(\#52843\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bf79e32622fddd2a6fc126610b70903be3e35f59

Requested commit: bf79e32622fddd2a6fc126610b70903be3e35f59

Commit: bf79e32622fddd2a6fc126610b70903be3e35f59

Tree: 1ea33e158140f5e099c632728cd319a4d25ccc1b

Author: Eric Holk

Committer: GitHub

## Message

```
Scroll to bottom when reloading ACP agent threads (#52843)

When reopening an ACP agent thread (e.g. after restarting Zed) that has
no saved scroll position, the conversation now starts scrolled to the
bottom so the user sees the latest messages instead of starting at the
top.

Uses `set_follow_tail(true)` rather than a one-shot `scroll_to_end()` so
the scroll position is re-anchored on every layout pass — ensuring it
lands at the true bottom even when list items haven't been measured yet.
The follow-tail mode automatically disengages as soon as the user
scrolls up.

Release Notes:

- Fixed agent threads starting scrolled to the top when reopened after
restarting Zed.
```

## Parents

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

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