# agent: Scroll to bottom after submitting a new message \(\#32819\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 69e84c0c48ab488830472ad5f08adab70c2455b1

Requested commit: 69e84c0c48ab488830472ad5f08adab70c2455b1

Commit: 69e84c0c48ab488830472ad5f08adab70c2455b1

Tree: 8a258577b0616b3ae4b5497430ea6b3c28616b8e

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Scroll to bottom after submitting a new message (#32819)

This is a follow up to my original attempt
https://github.com/zed-industries/zed/pull/30878 and to the PR that
eventually reverted parts of it because it broke stuff
https://github.com/zed-industries/zed/pull/31295. This new approach
attaches the `scroll_to_bottom` feature to the `chat` function, which is
triggered when the `Chat` action is dispatched by the "send" icon
buttons. With that, and from my testing, the thread doesn't forcefully
scroll as new messages are added, which was the regression I had
introduced.

Release Notes:

- agent: The panel nows scrolls to the bottom after submitting a new
message, allowing to see it more easily.
```

## Parents

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

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