Skip to content

Commit d77bf85

Browse files
authored
Reset the _turnLeft field of the azure agent when a new chat session is created (#257)
1 parent 83dcee3 commit d77bf85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shell/agents/Microsoft.Azure.Agent/AzureAgent.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public AzureAgent()
5656
_valueStore = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
5757
_instructions = string.Format(InstructionPrompt, Environment.OSVersion.VersionString);
5858

59-
Name = "Azure";
59+
Name = "azure";
6060
Company = "Microsoft";
6161
Description = "This AI assistant can generate Azure CLI and Azure PowerShell commands for managing Azure resources, answer questions, and provides information tailored to your specific Azure environment.";
6262

@@ -132,6 +132,7 @@ public async Task RefreshChatAsync(IShell shell, bool force)
132132

133133
if (!string.IsNullOrEmpty(welcome))
134134
{
135+
_turnsLeft = int.MaxValue;
135136
host.WriteLine(welcome);
136137
}
137138
}

0 commit comments

Comments
 (0)