# Stop generating in the Agent panel when the user edits a previous message \(\#29915\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ce053c9bff0699c922e62c0b3618249e0b9801b9

Requested commit: ce053c9bff0699c922e62c0b3618249e0b9801b9

Commit: ce053c9bff0699c922e62c0b3618249e0b9801b9

Tree: 51a9c5af7be3b7b5f7dec3317dd8065b3bde2a7e

Author: Ben Brandt

Committer: GitHub

## Message

```
Stop generating in the Agent panel when the user edits a previous message (#29915)

Otherwise the panel keeps scrolling as the new token comes in and it is
almost impossible to keep the scroll position in the right place.

Also, if the user is editing, it is likely that the current generated
tokens will need to be regenerated anyway, so we may as well stop the
current progress.

Release Notes:

- Agent Beta: Stop generating tokens if previous messages are edited.
```

## Parents

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

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