From 77ac82587a33bbeaf6758c10d91952fa2bd2fd99 Mon Sep 17 00:00:00 2001 From: Agus Zubiaga Date: Wed, 7 May 2025 14:43:04 -0300 Subject: [PATCH] agent: Improve consecutive tool use callout spacing (#30145) Release Notes: - agent: Fix "consecutive tool use limit" callout spacing --- crates/agent/src/assistant_panel.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/crates/agent/src/assistant_panel.rs b/crates/agent/src/assistant_panel.rs index 9752d4385e872b017f0ef6ab73657577165f1101..6ce121dea7a8968e6f49e74e6ca61129c758ed47 100644 --- a/crates/agent/src/assistant_panel.rs +++ b/crates/agent/src/assistant_panel.rs @@ -2338,14 +2338,13 @@ impl AssistantPanel { "" }; - Some( - Banner::new() - .severity(ui::Severity::Info) - .child(h_flex().child(Label::new(format!( - "Consecutive tool use limit reached.{max_mode_upsell}" - )))) - .into_any_element(), - ) + let banner = Banner::new() + .severity(ui::Severity::Info) + .child(h_flex().child(Label::new(format!( + "Consecutive tool use limit reached.{max_mode_upsell}" + )))); + + Some(div().px_2().pb_2().child(banner).into_any_element()) } fn render_last_error(&self, cx: &mut Context) -> Option {