This commit is contained in:
Sabrina-devops 2026-05-12 18:23:53 +02:00 committed by GitHub
commit 6ca124123d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

View File

@ -939,7 +939,7 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable
if(lastBlockContent is null) if(lastBlockContent is null)
return Task.CompletedTask; return Task.CompletedTask;
this.userInput = textBlock.Text; this.RestoreComposerFromTextBlock(textBlock);
this.ChatThread.Remove(block); this.ChatThread.Remove(block);
this.ChatThread.Remove(lastBlockContent); this.ChatThread.Remove(lastBlockContent);
this.hasUnsavedChanges = true; this.hasUnsavedChanges = true;
@ -956,13 +956,22 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable
if (block is not ContentText textBlock) if (block is not ContentText textBlock)
return Task.CompletedTask; return Task.CompletedTask;
this.userInput = textBlock.Text; this.RestoreComposerFromTextBlock(textBlock);
this.ChatThread.Remove(block); this.ChatThread.Remove(block);
this.hasUnsavedChanges = true; this.hasUnsavedChanges = true;
this.StateHasChanged(); this.StateHasChanged();
return Task.CompletedTask; return Task.CompletedTask;
} }
private void RestoreComposerFromTextBlock(ContentText textBlock)
{
this.userInput = textBlock.Text;
this.chatDocumentPaths.Clear();
foreach (var attachment in textBlock.FileAttachments)
this.chatDocumentPaths.Add(attachment.Normalize());
}
#region Overrides of MSGComponentBase #region Overrides of MSGComponentBase

View File

@ -37,6 +37,7 @@
- Fixed an issue where file and folder selection dialogs could open more than once on Windows. Thanks to Bernhard for reporting this bug. - Fixed an issue where file and folder selection dialogs could open more than once on Windows. Thanks to Bernhard for reporting this bug.
- Fixed an issue where exporting to Word could fail when the message contained certain formatting. - Fixed an issue where exporting to Word could fail when the message contained certain formatting.
- Fixed security issues in the native app runtime by strengthening how AI Studio creates and protects the secret values used for its internal secure connection. - Fixed security issues in the native app runtime by strengthening how AI Studio creates and protects the secret values used for its internal secure connection.
- Fixed an issue where documents were detached when editing a previous prompt. They now remain attached.
- Updated several security-sensitive Rust dependencies in the native runtime to address known vulnerabilities. - Updated several security-sensitive Rust dependencies in the native runtime to address known vulnerabilities.
- Updated .NET to v9.0.15 - Updated .NET to v9.0.15
- Updated dependencies - Updated dependencies