Skip to content

fix: add repos toolset to issue-triage agent to fix workflow failure#10441

Merged
timotheeguerin merged 3 commits into
mainfrom
copilot/debug-agentic-triage-error
Apr 21, 2026
Merged

fix: add repos toolset to issue-triage agent to fix workflow failure#10441
timotheeguerin merged 3 commits into
mainfrom
copilot/debug-agentic-triage-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 21, 2026

The Agentic Triage workflow produced no safe outputs because the prompt instructs the agent to read eng/common/config/labels.ts, but the GitHub MCP server is configured with only the issues toolset—no get_file_contents tool is available.

Changes

  • Added repos toolset to the GitHub MCP server configuration (toolsets: [issues, repos]) so the agent has access to get_file_contents and can read the labels file directly

The prompt is loaded at runtime via {{#runtime-import}}, so this takes effect without regenerating the lock.yml.

Copilot AI linked an issue Apr 21, 2026 that may be closed by this pull request
The issue-triage agent was unable to read eng/common/config/labels.ts
because the GitHub MCP server is configured with only the "issues"
toolset, which does not include get_file_contents. The agent had no way
to read repository files, causing it to produce no safe outputs.

Replace the instruction to read the labels file with the actual label
definitions embedded directly in the prompt. The prompt is loaded at
runtime via runtime-import, so this change takes effect without
regenerating the lock.yml.

Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/9221b9e3-5f1d-4f0b-bb1f-fcbe28f199af

Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Copilot AI changed the title [WIP] Debug Agentic Triage workflow failure fix: embed labels in issue-triage prompt to fix agent failure Apr 21, 2026
Copilot AI requested a review from timotheeguerin April 21, 2026 18:28
Comment thread .github/workflows/issue-triage.md
Instead of embedding labels in the prompt, add the repos toolset
to the GitHub MCP server configuration so the agent can read
eng/common/config/labels.ts directly using get_file_contents.

Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/bc9c6b6b-bccd-410f-b599-f1398e525f5d

Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Copilot AI changed the title fix: embed labels in issue-triage prompt to fix agent failure fix: add repos toolset to issue-triage agent to fix workflow failure Apr 21, 2026
Copilot AI requested a review from timotheeguerin April 21, 2026 19:23
@timotheeguerin timotheeguerin marked this pull request as ready for review April 21, 2026 20:31
@azure-sdk
Copy link
Copy Markdown
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@timotheeguerin timotheeguerin added this pull request to the merge queue Apr 21, 2026
Merged via the queue into main with commit 991dd24 Apr 21, 2026
30 checks passed
@timotheeguerin timotheeguerin deleted the copilot/debug-agentic-triage-error branch April 21, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Agentic Triage failed

4 participants