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.

sidebar: Use last used agent when creating a new thread from it (#52446)

Danilo Leal831595098279
diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs
index aa88773680f..fcc141c85db 100644
--- a/crates/agent_ui/src/agent_panel.rs
+++ b/crates/agent_ui/src/agent_panel.rs
@@ -1179,7 +1179,8 @@ impl AgentPanel {
}
pub fn new_thread(&mut self, _action: &NewThread, window: &mut Window, cx: &mut Context<Self>) {
- self.new_agent_thread(AgentType::NativeAgent, window, cx);
+ self.reset_start_thread_in_to_default(cx);
+ self.external_thread(None, None, None, None, None, true, window, cx);
}
fn new_native_agent_thread_from_summary(