From 3115298f989b2e721ccd89adfd650ca1df7e33b7 Mon Sep 17 00:00:00 2001 From: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com> Date: Fri, 15 May 2026 08:47:03 -0400 Subject: [PATCH] agent_panel: Hide thread title edit button outside thread view (#56833) Hide the edit thread title button unless the visible agent panel surface is a thread. Release Notes: - N/A --- crates/agent_ui/src/agent_panel.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs index cb2624d5311..d6e01a7e037 100644 --- a/crates/agent_ui/src/agent_panel.rs +++ b/crates/agent_ui/src/agent_panel.rs @@ -4088,7 +4088,9 @@ impl AgentPanel { .overflow_x_hidden() .child(content) .when( - self.has_open_project(cx) && !self.is_title_editor_focused(window, cx), + matches!(self.visible_surface(), VisibleSurface::AgentThread(_)) + && self.has_open_project(cx) + && !self.is_title_editor_focused(window, cx), |this| { this.child(gradient_overlay).child( h_flex()