History

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

Anthony Eid committed 6 months ago

Commit 31152981 parent e1b06d11 file · +3 −1Browse files

Unified · Split

crates/agent_ui/src/agent_panel.rs+3−1
@@ -4088,7 +4088,9 @@ impl AgentPanel { · 4087 unmodified lines
40884088 .overflow_x_hidden()
40894089 .child(content)
40904090 .when(
4091− self.has_open_project(cx) && !self.is_title_editor_focused(window, cx),
4091+ matches!(self.visible_surface(), VisibleSurface::AgentThread(_))
4092+ && self.has_open_project(cx)
4093+ && !self.is_title_editor_focused(window, cx),
40924094 |this| {
40934095 this.child(gradient_overlay).child(
40944096 h_flex()