Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

agent_ui: Fix auto-scroll in subagent cards (#52719)

Danilo Leal4317359bcf12
diff --git a/crates/agent_ui/src/conversation_view/thread_view.rs b/crates/agent_ui/src/conversation_view/thread_view.rs
index 77b2b1f82c2..c14636be8c9 100644
--- a/crates/agent_ui/src/conversation_view/thread_view.rs
+++ b/crates/agent_ui/src/conversation_view/thread_view.rs
@@ -7759,7 +7759,6 @@ impl ThreadView {
this.when(is_expanded, |this| {
this.child(self.render_subagent_expanded_content(
thread_view,
- is_running,
tool_call,
window,
cx,
@@ -7782,7 +7781,6 @@ impl ThreadView {
fn render_subagent_expanded_content(
&self,
thread_view: &Entity<ThreadView>,
- is_running: bool,
tool_call: &ToolCall,
window: &Window,
cx: &Context<Self>,
@@ -7834,9 +7832,8 @@ impl ThreadView {
.entry(session_id.clone())
.or_default()
.clone();
- if is_running {
- scroll_handle.scroll_to_bottom();
- }
+
+ scroll_handle.scroll_to_bottom();
let rendered_entries: Vec<AnyElement> = entries
.get(entry_range)