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
This commit is contained in:
Anthony Eid authored and GitHub committed 2026-05-15 12:47:03 +00:00
1 parent e1b06d1baf
commit 3115298f98
1 file changed
+3 -1
+3 -1
View File
@@ -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()