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 focus moving to buffer on worktree creation (#53972)
Danilo Leale676365c04f5
diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rsindex af521e3d276..58d547cb7ff 100644--- a/crates/agent_ui/src/agent_panel.rs+++ b/crates/agent_ui/src/agent_panel.rs@@ -3512,7 +3512,10 @@ impl AgentPanel {if !paths_to_open.is_empty() {let open_task = workspace.open_paths(paths_to_open,- workspace::OpenOptions::default(),+ workspace::OpenOptions {+ focus: Some(false),+ ..Default::default()+ },None,window,cx,