# agent: Fix long previous user message double scroll \(\#33056\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 16f1da1b7ecb8de484b0773a905506b53b178602

Requested commit: 16f1da1b7ecb8de484b0773a905506b53b178602

Commit: 16f1da1b7ecb8de484b0773a905506b53b178602

Tree: 3e8bdcc54b942c2716ec31b899122be09fc2806c

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Fix long previous user message double scroll (#33056)

Previously, if editing a long previous user message in the thread, you'd
have a double scroll situation because the editor used in that case had
its max number of lines capped. To solve that, I made the `max_lines` in
the editor `AutoHeight` mode optional, allowing me to not pass any
arbitrary number to the previous user message editor, and ultimately,
solving the double scroll problem by not having any scroll at all.

Release Notes:

- agent: Fixed double scroll that happened when editing a long previous
user message.

@ConradIrwin adding you as a reviewer as I'm touching editor code
here... want to be careful. :)
```

## Parents

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

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