mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 07:27:21 +00:00
Added progress messages and quick access to exported files (#1112)
This commit is contained in:
1 parent
7f72da628e
commit
e0d8e18f34
33 files changed
+1130
-23
No files matched your search
@@ -180,6 +180,14 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
|
||||
private AssistantSessionKey assistantSessionKey;
|
||||
private MediaImportOwner CurrentMediaImportOwner => MediaImportOwner.ForAssistant(this.assistantSessionKey);
|
||||
private Guid? assistantSessionId;
|
||||
|
||||
/// <summary>
|
||||
/// When the running session started, which the time below the progress bar counts from; null while
|
||||
/// no session runs. It comes from the session, so an instance which returns to a running session
|
||||
/// goes on counting where the first one was.
|
||||
/// </summary>
|
||||
private DateTimeOffset? processingStartedAt;
|
||||
|
||||
private AssistantSessionSnapshot? pendingRenderedAssistantSessionSnapshot;
|
||||
private AssistantSessionSnapshot? lastAttachedAssistantSessionSnapshot;
|
||||
|
||||
@@ -311,6 +319,7 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
|
||||
}
|
||||
|
||||
this.assistantSessionId = startedSession.SessionId;
|
||||
this.processingStartedAt = startedSession.StartedAt;
|
||||
await this.RefreshAssistantUIAsync();
|
||||
|
||||
var sessionStatus = AssistantSessionStatus.COMPLETED;
|
||||
@@ -343,6 +352,7 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
|
||||
finally
|
||||
{
|
||||
this.IsProcessing = false;
|
||||
this.processingStartedAt = null;
|
||||
var sessionCancellationTokenSource = this.CancellationTokenSource;
|
||||
this.CancellationTokenSource = null;
|
||||
if (this.assistantSessionId is { } sessionId)
|
||||
@@ -1060,6 +1070,7 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
|
||||
this.lastAttachedAssistantSessionSnapshot = snapshot;
|
||||
this.ChatThread = snapshot.ChatThread ?? this.ChatThread;
|
||||
this.IsProcessing = snapshot.IsActive;
|
||||
this.processingStartedAt = snapshot.IsActive ? snapshot.StartedAt : null;
|
||||
|
||||
if (!snapshot.IsActive)
|
||||
this.CancellationTokenSource = null;
|
||||
|
||||
Reference in new issue
Block a user