agent2: Port more Zed AI features (#36559)

Release Notes:

- N/A

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
This commit is contained in:
Bennet Bo Fenner 2025-08-20 10:45:03 +02:00 committed by GitHub
parent 4c85a0dc71
commit d4d049d7b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 134 additions and 1 deletions

View file

@ -81,7 +81,8 @@ impl Callout {
self
}
/// Sets an optional tertiary call-to-action button.
/// Sets an optional dismiss button, which is usually an icon button with a close icon.
/// This button is always rendered as the last one to the far right.
pub fn dismiss_action(mut self, action: impl IntoElement) -> Self {
self.dismiss_action = Some(action.into_any_element());
self