From a8169bc6b4f3e5a3a606ea8414e0a267e05f8c04 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 21 Jul 2026 09:42:50 +0200 Subject: [PATCH] Fixed state after assistant plugins resets --- .../Components/ReadFileContent.razor.cs | 13 ++++++++++++- app/MindWork AI Studio/wwwroot/changelog/v26.7.3.md | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/app/MindWork AI Studio/Components/ReadFileContent.razor.cs b/app/MindWork AI Studio/Components/ReadFileContent.razor.cs index 35491ada..4d438fdb 100644 --- a/app/MindWork AI Studio/Components/ReadFileContent.razor.cs +++ b/app/MindWork AI Studio/Components/ReadFileContent.razor.cs @@ -91,6 +91,17 @@ public partial class ReadFileContent : MSGComponentBase #region Overrides of MSGComponentBase + protected override void OnParametersSet() + { + if (string.IsNullOrWhiteSpace(this.FileContent)) + { + this.hasLoadedFileContent = false; + this.loadedFileName = string.Empty; + } + + base.OnParametersSet(); + } + protected override async Task OnInitializedAsync() { this.MediaTranscriptionService.StateChanged += this.OnMediaImportStateChanged; @@ -398,4 +409,4 @@ public partial class ReadFileContent : MSGComponentBase this.ClearDragClass(); this.StateHasChanged(); } -} +} \ No newline at end of file diff --git a/app/MindWork AI Studio/wwwroot/changelog/v26.7.3.md b/app/MindWork AI Studio/wwwroot/changelog/v26.7.3.md index 9a8a85f6..2bee89af 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v26.7.3.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v26.7.3.md @@ -9,7 +9,7 @@ - Improved update guidance for Flatpak installations and added an enterprise option that lets organizations manage updates entirely through their IT department. - Improved secure API-key storage diagnostics on Linux. AI Studio now provides specific guidance when the default password collection is missing or locked, a password-manager prompt is dismissed, or no compatible Secret Service is available. - Improved the file dialogs to prevent opening multiple times when you click "Open" or "Save" multiple times in a row. -- Improved assistant plugins so they clearly indicate when content from a document has been loaded. +- Improved assistant plugins so they clearly indicate when content from a document has been loaded and clear the indicator when the assistant is reset. - Fixed an issue that could leave AI Studio unresponsive after waking the computer from sleep. Yes, we know this was an annoying bug, and we apologize for the inconvenience. - Fixed connections to internal HTTPS services and enterprise configuration servers that use organization-provided root certificates on Linux. - Fixed enterprise configuration plugins from Windows-created ZIP files may not load correctly on Linux when the ZIP contained plugin files inside a folder.