From e676365c04f5f361fce7390be144cc9204e320c9 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Wed, 15 Apr 2026 06:55:19 -0300 Subject: [PATCH] agent_ui: Fix focus moving to buffer on worktree creation (#53972) Follow-up to https://github.com/zed-industries/zed/pull/53941 Release Notes: - N/A --- crates/agent_ui/src/agent_panel.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs index af521e3d2764af435a53c9b2d297ad182e6f0e6c..58d547cb7ff165d0b77576d220399dc0f57f903c 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,