From 2e58ecb97d5c5f40e1fa3822d5019e512a5c1ddd Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 17 May 2025 20:35:51 +0200 Subject: [PATCH] Fixed a rare bug regarding renaming chats (#465) --- app/MindWork AI Studio/Components/Workspaces.razor.cs | 7 +++++++ app/MindWork AI Studio/wwwroot/changelog/v0.9.44.md | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/MindWork AI Studio/Components/Workspaces.razor.cs b/app/MindWork AI Studio/Components/Workspaces.razor.cs index 59e43144..f603a400 100644 --- a/app/MindWork AI Studio/Components/Workspaces.razor.cs +++ b/app/MindWork AI Studio/Components/Workspaces.razor.cs @@ -344,6 +344,13 @@ public partial class Workspaces : MSGComponentBase return; chat.Name = (dialogResult.Data as string)!; + if(this.CurrentChatThread?.ChatId == chat.ChatId) + { + this.CurrentChatThread.Name = chat.Name; + await this.CurrentChatThreadChanged.InvokeAsync(this.CurrentChatThread); + await MessageBus.INSTANCE.SendMessage(this, Event.WORKSPACE_LOADED_CHAT_CHANGED); + } + await this.StoreChat(chat); await this.LoadTreeItems(); } diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.9.44.md b/app/MindWork AI Studio/wwwroot/changelog/v0.9.44.md index f772db13..a7393c47 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.9.44.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.9.44.md @@ -2,4 +2,5 @@ - Improved compatibility with certain Ubuntu linux versions regarding desktop integration. - Improved localization code & German translation. - Fixed a bug with text fields when their content was read live. This issue caused the user interface to refresh too frequently, resulting in increased energy consumption. -- Fixed an issue that caused live translation to stop working. \ No newline at end of file +- Fixed an issue that caused live translation to stop working. +- Fixed a rare bug that could, under some circumstances, prevent the currently open chat from being renamed. \ No newline at end of file