Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent2: Fix terminal tool call content not being shown once truncated (#37318)
Cole Miller47ad1b214341
diff --git a/crates/agent_ui/src/acp/thread_view.rs b/crates/agent_ui/src/acp/thread_view.rsindex c039826c83a..c3bf7219b49 100644--- a/crates/agent_ui/src/acp/thread_view.rs+++ b/crates/agent_ui/src/acp/thread_view.rs@@ -2655,7 +2655,18 @@ impl AcpThreadView {.bg(cx.theme().colors().editor_background).rounded_b_md().text_ui_sm(cx)- .children(terminal_view.clone()),+ .h_full()+ .children(terminal_view.map(|terminal_view| {+ if terminal_view+ .read(cx)+ .content_mode(window, cx)+ .is_scrollable()+ {+ div().h_72().child(terminal_view).into_any_element()+ } else {+ terminal_view.into_any_element()+ }+ })),)}).into_any()