From 208f525a11b31c317a243104acf44cda5a67a17e Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Fri, 23 May 2025 15:11:29 -0400 Subject: [PATCH] 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. --- crates/agent/src/active_thread.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/agent/src/active_thread.rs b/crates/agent/src/active_thread.rs index 2dbd97edf0..afa774168a 100644 --- a/crates/agent/src/active_thread.rs +++ b/crates/agent/src/active_thread.rs @@ -1033,7 +1033,6 @@ impl ActiveThread { self.push_message(message_id, &message_segments, window, cx); } - self.scroll_to_bottom(cx); self.save_thread(cx); cx.notify(); }