agent: Display "generating" label in the active thread (#28297)

Release Notes:

- N/A

---------

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
This commit is contained in:
Danilo Leal 2025-04-08 14:31:32 -03:00 committed by GitHub
parent 85c5d8af3a
commit 698cdc4d1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 162 additions and 81 deletions

View file

@ -51,6 +51,11 @@ impl Label {
label: label.into(),
}
}
/// Sets the text of the [`Label`].
pub fn set_text(&mut self, text: impl Into<SharedString>) {
self.label = text.into();
}
}
// nate: If we are going to do this, we might as well just