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 2026-05-15 08:47:03 -04:00 committed by GitHub
parent e1b06d1baf
commit 3115298f98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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