From 4b334b54fdd0aed6411a894984a0b10400f7cdb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peer=20Sch=C3=BCtt?= <20603780+peerschuett@users.noreply.github.com> Date: Tue, 28 Jul 2026 08:43:23 +0200 Subject: [PATCH] LLM model choice is now kept when tool settings change --- app/MindWork AI Studio/Components/ChatComponent.razor.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/MindWork AI Studio/Components/ChatComponent.razor.cs b/app/MindWork AI Studio/Components/ChatComponent.razor.cs index 265e176f..3070473a 100644 --- a/app/MindWork AI Studio/Components/ChatComponent.razor.cs +++ b/app/MindWork AI Studio/Components/ChatComponent.razor.cs @@ -611,9 +611,8 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable { var previousProvider = this.Provider; var previousChatTemplate = this.currentChatTemplate; - var chatProviderId = this.ChatThread?.SelectedProvider; - this.Provider = this.SettingsManager.GetChatProviderForLoadedChat(chatProviderId); + this.Provider = this.SettingsManager.GetChatProviderForLoadedChat(this.Provider.Id); if (this.Provider != previousProvider) await this.ProviderChanged.InvokeAsync(this.Provider);