Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Ensure we use the new agent when opening the panel for the first time (#36988)
Antonio Scandurrae5c0614e8852
diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rsindex d1cf7487331..624cb5c0c68 100644--- a/crates/agent_ui/src/agent_panel.rs+++ b/crates/agent_ui/src/agent_panel.rs@@ -618,6 +618,10 @@ impl AgentPanel {}cx.notify();});+ } else {+ panel.update(cx, |panel, cx| {+ panel.new_agent_thread(AgentType::NativeAgent, window, cx);+ });}panel})?;