From ba6b8d2b3cdc31149122763979506c79e49817fa Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 23 Nov 2024 10:54:58 +0100 Subject: [PATCH] Fixed auto-save when sending assistant results to a new chat (#216) --- app/MindWork AI Studio/Pages/Chat.razor.cs | 4 ++-- app/MindWork AI Studio/wwwroot/changelog/v0.9.21.md | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/MindWork AI Studio/Pages/Chat.razor.cs b/app/MindWork AI Studio/Pages/Chat.razor.cs index d329953..db841df 100644 --- a/app/MindWork AI Studio/Pages/Chat.razor.cs +++ b/app/MindWork AI Studio/Pages/Chat.razor.cs @@ -84,8 +84,8 @@ public partial class Chat : MSGComponentBase, IAsyncDisposable }; } } - - if(this.chatThread.WorkspaceId != Guid.Empty) + + if (this.SettingsManager.ConfigurationData.Workspace.StorageBehavior is WorkspaceStorageBehavior.STORE_CHATS_AUTOMATICALLY) { this.autoSaveEnabled = true; this.mustStoreChat = true; diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.9.21.md b/app/MindWork AI Studio/wwwroot/changelog/v0.9.21.md index 262f270..bfe7ea8 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.9.21.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.9.21.md @@ -1,2 +1,3 @@ -# v0.9.21, build 196 (2024-11-1x xx:xx UTC) -- Fixed the missed workspace title when loading the today's bias. \ No newline at end of file +# v0.9.21, build 196 (2024-11-xx xx:xx UTC) +- Fixed the missed workspace title when loading the today's bias. +- Fixed auto-save when sending assistant results to a new chat. \ No newline at end of file