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.

agent_panel: Hide thread title edit button outside thread view (#56833)

Anthony Eid3115298f989b
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()