From 6446c1aa62eddedb4535ae48df3efc9d66f38c77 Mon Sep 17 00:00:00 2001 From: ilderaj <6321440+ilderaj@users.noreply.github.com> Date: Wed, 29 Apr 2026 10:16:41 +0800 Subject: [PATCH] Fix trailing commas in agent tools arrays causing empty tool names (#1543) Three agent files had a trailing comma after the last element in their YAML flow-sequence tools arrays. When parsed, this produces an empty string as an extra tool entry, which the Copilot API rejects with: CAPIError: 400 Invalid 'tools[N].function.name': empty string Affected files: - agents/kusto-assistant.agent.md - agents/mentoring-juniors.agent.md - agents/address-comments.agent.md Co-authored-by: ilderaj <> --- agents/address-comments.agent.md | 2 +- agents/kusto-assistant.agent.md | 2 +- agents/mentoring-juniors.agent.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/agents/address-comments.agent.md b/agents/address-comments.agent.md index 191c533c..4090d5ea 100644 --- a/agents/address-comments.agent.md +++ b/agents/address-comments.agent.md @@ -24,7 +24,7 @@ tools: "usages", "vscodeAPI", "microsoft.docs.mcp", - "github", + "github" ] --- diff --git a/agents/kusto-assistant.agent.md b/agents/kusto-assistant.agent.md index a23aecea..a90f7b00 100644 --- a/agents/kusto-assistant.agent.md +++ b/agents/kusto-assistant.agent.md @@ -22,7 +22,7 @@ tools: "terminalSelection", "testFailure", "usages", - "vscodeAPI", + "vscodeAPI" ] --- diff --git a/agents/mentoring-juniors.agent.md b/agents/mentoring-juniors.agent.md index cad275fc..d276c76d 100644 --- a/agents/mentoring-juniors.agent.md +++ b/agents/mentoring-juniors.agent.md @@ -12,7 +12,7 @@ tools: "search", "terminalLastCommand", "terminalSelection", - "usages", + "usages" ] ---