Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions shell/agents/Microsoft.Azure.Agent/ChatSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@ internal async Task<string> RefreshAsync(IStatusContext context, bool force, Can
{
try
{
context.Status("Refreshing access token ...");
context.Status("Refreshing tokens ...");
await _accessToken.CreateOrRenewTokenAsync(cancellationToken);

context.Status("Refreshing DirectLine token ...");
await _directLineToken.RenewTokenAsync(_httpClient, cancellationToken);

// Tokens successfully refreshed.
Expand Down Expand Up @@ -292,10 +290,8 @@ internal async Task<CopilotResponse> GetChatResponseAsync(string input, IStatusC

try
{
context.Status("Refreshing access token ...");
context.Status("Refreshing tokens ...");
await _accessToken.CreateOrRenewTokenAsync(cancellationToken);

context.Status("Refreshing DirectLine token ...");
await _directLineToken.RenewTokenAsync(_httpClient, cancellationToken);

context?.Status("Sending query ...");
Expand Down