Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
thread view: Refine the terminal tool card header UI (#37488)
Danilo Lealec1528b8905e
diff --git a/crates/agent_ui/src/acp/thread_view.rs b/crates/agent_ui/src/acp/thread_view.rsindex 5269b8b0f7a..e277caf58da 100644--- a/crates/agent_ui/src/acp/thread_view.rs+++ b/crates/agent_ui/src/acp/thread_view.rs@@ -2637,28 +2637,6 @@ impl AcpThreadView {.with_rotate_animation(2))})- .child(- Disclosure::new(- SharedString::from(format!(- "terminal-tool-disclosure-{}",- terminal.entity_id()- )),- is_expanded,- )- .opened_icon(IconName::ChevronUp)- .closed_icon(IconName::ChevronDown)- .visible_on_hover(&header_group)- .on_click(cx.listener({- let id = tool_call.id.clone();- move |this, _event, _window, _cx| {- if is_expanded {- this.expanded_tool_calls.remove(&id);- } else {- this.expanded_tool_calls.insert(id.clone());- }- }- })),- ).when(truncated_output, |header| {let tooltip = if let Some(output) = output {if output_line_count + 10 > terminal::MAX_SCROLL_HISTORY_LINES {@@ -2717,7 +2695,29 @@ impl AcpThreadView {)))}),)- });+ })+ .child(+ Disclosure::new(+ SharedString::from(format!(+ "terminal-tool-disclosure-{}",+ terminal.entity_id()+ )),+ is_expanded,+ )+ .opened_icon(IconName::ChevronUp)+ .closed_icon(IconName::ChevronDown)+ .visible_on_hover(&header_group)+ .on_click(cx.listener({+ let id = tool_call.id.clone();+ move |this, _event, _window, _cx| {+ if is_expanded {+ this.expanded_tool_calls.remove(&id);+ } else {+ this.expanded_tool_calls.insert(id.clone());+ }+ }+ })),+ );let terminal_view = self.entry_view_state