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

@@ -22,6 +22,17 @@ public partial class Chat : MSGComponentBase
private ChatThread? chatThread;
private AIStudio.Settings.Provider providerSettings = AIStudio.Settings.Provider.NONE;
/// <summary>
/// Whether an answer is being written for the open chat, as the chat component last told.
/// </summary>
/// <remarks>
/// The provider selection is locked meanwhile. Another provider would not reach the answer, which
/// keeps the one it started with, but the chat would show the other one while the answer is still
/// being written.
/// </remarks>
private bool isAnswerBeingWritten;
private bool workspaceOverlayVisible;
private bool workspaceSearchVisible;
private string currentWorkspaceName = string.Empty;