From b404bdd48882179c723de1499e3adb6b04ea647e Mon Sep 17 00:00:00 2001 From: Sabrina-devops Date: Thu, 6 Aug 2026 12:13:08 +0200 Subject: [PATCH] Fixed reset button in the document analysis assistant (#887) --- app/MindWork AI Studio/Assistants/AssistantBase.razor.cs | 3 +++ app/MindWork AI Studio/wwwroot/changelog/v26.8.1.md | 1 + 2 files changed, 4 insertions(+) diff --git a/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs b/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs index 30939446..395f8055 100644 --- a/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs +++ b/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs @@ -657,9 +657,12 @@ public abstract partial class AssistantBase : AssistantLowerBase wher await this.AssistantSessionService.ClearAsync(this.assistantSessionKey); this.MediaTranscriptionService.ClearOwnerState(this.CurrentMediaImportOwner); this.assistantSessionId = null; + this.ChatThread = null; + this.LastUserPrompt = null; this.ResultingContentBlock = null; this.ProviderSettings = Settings.Provider.NONE; + await this.JsRuntime.ClearDiv(BEFORE_RESULT_DIV_ID); await this.JsRuntime.ClearDiv(RESULT_DIV_ID); await this.JsRuntime.ClearDiv(AFTER_RESULT_DIV_ID); diff --git a/app/MindWork AI Studio/wwwroot/changelog/v26.8.1.md b/app/MindWork AI Studio/wwwroot/changelog/v26.8.1.md index 828e304a..8044a0ca 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v26.8.1.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v26.8.1.md @@ -6,5 +6,6 @@ - Added the option to import plugins by dropping a plugin archive onto the plugin page. - Added the dedicated file extension `.mwplugin` for plugin archives. - Added an option for organizations to disable importing, sharing, and exporting plugins. +- Fixed reset buttons in assistants. As you may have noticed in the Document Analysis Assistant, resetting it could leave content from the previous analysis visible. Reset buttons now clear previous results completely. - Fixed dropping files after you closed a dialog that accepts files itself. Such a dialog takes over dropped files while it is open, but never handed that role back when you closed it. Afterwards, the chat and the assistants silently ignored dropped files until you switched to another page. Each time you opened such a dialog again, the problem got worse. - Upgraded dependencies to their latest versions to improve security and stability. \ No newline at end of file