diff --git a/crates/agent/src/active_thread.rs b/crates/agent/src/active_thread.rs index f59fabe1396d223bb18dc1cd30491212afaf3790..0e9399b294c0f8bde4424e9d6cfc085002917861 100644 --- a/crates/agent/src/active_thread.rs +++ b/crates/agent/src/active_thread.rs @@ -2343,6 +2343,9 @@ impl ActiveThread { rendered.input.clone(), tool_use_markdown_style(window, cx), ) + .code_block_renderer(markdown::CodeBlockRenderer::Default { + copy_button: false, + }) .on_url_click({ let workspace = self.workspace.clone(); move |text, window, cx| { @@ -2369,6 +2372,9 @@ impl ActiveThread { rendered.output.clone(), tool_use_markdown_style(window, cx), ) + .code_block_renderer(markdown::CodeBlockRenderer::Default { + copy_button: false, + }) .on_url_click({ let workspace = self.workspace.clone(); move |text, window, cx| { @@ -2544,7 +2550,7 @@ impl ActiveThread { ) } else { v_flex() - .my_3() + .my_2() .rounded_lg() .border_1() .border_color(self.tool_card_border_color(cx)) diff --git a/crates/agent/src/ui/context_pill.rs b/crates/agent/src/ui/context_pill.rs index a2354443239cf0250f42690013d8f44aefdcdfe2..a50b54f4de034fcd30336c485c0d6dadcbe1bae3 100644 --- a/crates/agent/src/ui/context_pill.rs +++ b/crates/agent/src/ui/context_pill.rs @@ -191,15 +191,12 @@ impl RenderOnce for ContextPill { ContextPill::Suggested { name, icon_path: _, - kind, + kind: _, focused, on_click, } => base_pill .cursor_pointer() .pr_1() - .when(*focused, |this| { - this.bg(color.element_background.opacity(0.5)) - }) .border_dashed() .border_color(if *focused { color.border_focused @@ -207,30 +204,17 @@ impl RenderOnce for ContextPill { color.border }) .hover(|style| style.bg(color.element_hover.opacity(0.5))) + .when(*focused, |this| { + this.bg(color.element_background.opacity(0.5)) + }) .child( - div().px_0p5().max_w_64().child( + div().max_w_64().child( Label::new(name.clone()) .size(LabelSize::Small) .color(Color::Muted) .truncate(), ), ) - .child( - Label::new(match kind { - ContextKind::File => "Active Tab", - ContextKind::Thread - | ContextKind::Directory - | ContextKind::FetchedUrl - | ContextKind::Symbol => "Active", - }) - .size(LabelSize::XSmall) - .color(Color::Muted), - ) - .child( - Icon::new(IconName::Plus) - .size(IconSize::XSmall) - .into_any_element(), - ) .tooltip(|window, cx| { Tooltip::with_meta("Suggested Context", None, "Click to add it", window, cx) })