diff --git a/app/MindWork AI Studio/Pages/Chat.razor b/app/MindWork AI Studio/Pages/Chat.razor index 8c345b4..b77edf1 100644 --- a/app/MindWork AI Studio/Pages/Chat.razor +++ b/app/MindWork AI Studio/Pages/Chat.razor @@ -49,7 +49,7 @@ @bind-ChatThread="@this.chatThread" @bind-Provider="@this.providerSettings" Workspaces="@this.workspaces" - WorkspaceName="name => this.currentWorkspaceName = name"/> + WorkspaceName="name => this.UpdateWorkspaceName(name)"/> } @@ -67,7 +67,7 @@ @bind-ChatThread="@this.chatThread" @bind-Provider="@this.providerSettings" Workspaces="@this.workspaces" - WorkspaceName="name => this.currentWorkspaceName = name"/> + WorkspaceName="name => this.UpdateWorkspaceName(name)"/> } else @@ -77,7 +77,7 @@ @bind-ChatThread="@this.chatThread" @bind-Provider="@this.providerSettings" Workspaces="@this.workspaces" - WorkspaceName="name => this.currentWorkspaceName = name"/> + WorkspaceName="name => this.UpdateWorkspaceName(name)"/> } @if ( diff --git a/app/MindWork AI Studio/Pages/Chat.razor.cs b/app/MindWork AI Studio/Pages/Chat.razor.cs index 1609a22..3ee7ecc 100644 --- a/app/MindWork AI Studio/Pages/Chat.razor.cs +++ b/app/MindWork AI Studio/Pages/Chat.razor.cs @@ -73,6 +73,12 @@ public partial class Chat : MSGComponentBase } private double ReadSplitterPosition => this.AreWorkspacesHidden ? 6 : this.splitterPosition; + + private void UpdateWorkspaceName(string workspaceName) + { + this.currentWorkspaceName = workspaceName; + this.StateHasChanged(); + } #region Overrides of MSGComponentBase diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.9.27.md b/app/MindWork AI Studio/wwwroot/changelog/v0.9.27.md index d77bbc9..1f51fbf 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.9.27.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.9.27.md @@ -3,4 +3,5 @@ - Improved message process debugging. This helps to identify issues related to the message handling. - Fixed the hostname validation message for ERI v1 data sources. - Fixed a memory leak in the chat component. +- Fixed an issue with the workspace title not being updated when a chat was moved to another workspace. - Removed the "send to" button from the ERI server assistant, since it is not supported. \ No newline at end of file