Inline assistant: Clear failure text when regenerating (#44911)

Release Notes:

- N/A
This commit is contained in:
Michael Benfield authored and GitHub committed 2025-12-15 12:56:22 -08:00
1 parent 523f093c8e
commit fb574d8869
1 file changed
+3
+3
View File
@@ -409,6 +409,9 @@ impl CodegenAlternative {
model: Arc<dyn LanguageModel>,
cx: &mut Context<Self>,
) -> Result<()> {
// Clear the model explanation since the user has started a new generation.
self.description = None;
if let Some(transformation_transaction_id) = self.transformation_transaction_id.take() {
self.buffer.update(cx, |buffer, cx| {
buffer.undo_transaction(transformation_transaction_id, cx);