Reset profile and chat template on assistant reset

This commit is contained in:
Thorsten Sommer 2025-09-04 11:24:55 +02:00
parent fc37882773
commit 83bc0326a1
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 3 additions and 0 deletions

View File

@ -354,6 +354,8 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
this.ResetForm();
this.providerSettings = this.SettingsManager.GetPreselectedProvider(this.Component);
this.currentProfile = this.SettingsManager.GetPreselectedProfile(this.Component);
this.currentChatTemplate = this.SettingsManager.GetPreselectedChatTemplate(this.Component);
this.inputIsValid = false;
this.inputIssues = [];

View File

@ -22,4 +22,5 @@
- Fixed another bug in the web content reader: the system incorrectly evaluated whether the content cleaning agent was preselected. Users had to first deactivate the agent and then reactivate it to make it work correctly.
- Fixed a bug in the assistants for text summarization, translations, and legal check: the web content reader preferences were not being applied when resetting the assistant.
- Fixed the bottom margin of code blocks in chat. The bottom margins were too small. This was particularly problematic when horizontal scrollbars were necessary.
- Fixed a bug in assistants: the selected profile wasn't reset when resetting the assistant.
- Upgraded dependencies.