Polish per-answer thinking disclosure

This commit is contained in:
Peer Hogeterp committed 2026-09-10 17:32:38 +02:00
1 parent b28f2bcf6c
commit fc30b33daa
20 files changed
+147 -54

No files matched your search

+8 -2
View File
@@ -127,13 +127,19 @@ public sealed class ContentText : IContent
if (token.IsCancellationRequested)
break;
// Stop the waiting animation:
this.InitialRemoteWait = false;
this.IsStreaming = true;
// Add the response to the content:
this.ApplyStreamChunk(contentStreamChunk);
//
// Stop the waiting animation once the answer itself starts. A model which
// is still reasoning has not written anything to read yet, and an empty
// bubble would look like a finished, empty answer. The thinking section
// is available next to the animation the whole time.
//
this.InitialRemoteWait = this.Text.Length is 0;
// Notify the UI that the content has changed,
// depending on the energy saving mode:
var now = DateTimeOffset.Now;