Don't always scroll to bottom on every new message (#31295)

This is a partial reversion of
https://github.com/zed-industries/zed/pull/30878 - having it always
scroll to bottom whenever a new message is added makes it so that when
you're scrolled up, you don't have time to read what you're trying to
read before it autoscrolls to the end.

@danilo-leal when you're back, we can pair on addressing that in a
different way!

Release Notes:

- Fixed bug where scrolling up in the agent panel didn't prevent
automatic scroll-to-end whenever a new message arrived.
This commit is contained in:
Richard Feldman 2025-05-23 15:11:29 -04:00 committed by GitHub
parent 697c838455
commit 208f525a11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1033,7 +1033,6 @@ impl ActiveThread {
self.push_message(message_id, &message_segments, window, cx); self.push_message(message_id, &message_segments, window, cx);
} }
self.scroll_to_bottom(cx);
self.save_thread(cx); self.save_thread(cx);
cx.notify(); cx.notify();
} }