agent: Improve consecutive tool use callout spacing (#30145)

Release Notes:

- agent: Fix "consecutive tool use limit" callout spacing
This commit is contained in:
Agus Zubiaga 2025-05-07 14:43:04 -03:00 committed by GitHub
parent 7c76cee16d
commit 77ac82587a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2338,14 +2338,13 @@ impl AssistantPanel {
"" ""
}; };
Some( let banner = Banner::new()
Banner::new() .severity(ui::Severity::Info)
.severity(ui::Severity::Info) .child(h_flex().child(Label::new(format!(
.child(h_flex().child(Label::new(format!( "Consecutive tool use limit reached.{max_mode_upsell}"
"Consecutive tool use limit reached.{max_mode_upsell}" ))));
))))
.into_any_element(), Some(div().px_2().pb_2().child(banner).into_any_element())
)
} }
fn render_last_error(&self, cx: &mut Context<Self>) -> Option<AnyElement> { fn render_last_error(&self, cx: &mut Context<Self>) -> Option<AnyElement> {