agent: Improve consecutive tool use callout spacing (#30145)
Release Notes: - agent: Fix "consecutive tool use limit" callout spacing
This commit is contained in:
@@ -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> {
|
||||||
|
|||||||
Reference in New Issue
Block a user