Locked changes to a chat while an answer is being written (#1058)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-13 18:50:56 +02:00
1 parent 88d1f4d96a
commit fbb65fd72d
19 files changed
+841 -59

No files matched your search

@@ -34,6 +34,10 @@ public partial class ProviderSelection : MSGComponentBase
/// <summary>
/// Gets or sets whether provider selection is disabled.
/// </summary>
/// <remarks>
/// A choice which reaches a disabled selection anyway is turned down. Keeping the selected provider
/// up to date after its settings changed is no choice, so that goes on.
/// </remarks>
[Parameter]
public bool Disabled { get; set; }
@@ -55,6 +59,9 @@ public partial class ProviderSelection : MSGComponentBase
private async Task SelectionChanged(AIStudio.Settings.Provider provider)
{
if (this.Disabled)
return;
this.ProviderSettings = provider;
await this.ProviderSettingsChanged.InvokeAsync(provider);
}