fix the issue (#4388)

This commit is contained in:
SergeyMenshykh
2026-03-02 16:48:10 +00:00
committed by GitHub
Unverified
parent db48f8ce09
commit 8a18f39b36
2 changed files with 4 additions and 1 deletions
@@ -174,7 +174,8 @@ public sealed partial class FileAgentSkillsProvider : AIContextProvider
{
try
{
promptTemplate = string.Format(optionsInstructions, string.Empty);
_ = string.Format(optionsInstructions, string.Empty);
promptTemplate = optionsInstructions;
}
catch (FormatException ex)
{
@@ -108,6 +108,8 @@ public sealed class FileAgentSkillsProviderTests : IDisposable
// Assert
Assert.NotNull(result.Instructions);
Assert.StartsWith("Custom template:", result.Instructions);
Assert.Contains("custom-prompt-skill", result.Instructions);
Assert.Contains("Custom prompt", result.Instructions);
}
[Fact]