Skip to content

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

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

Timothee Guerin (timotheeguerin) merged 3 commits into
mainfrom
copilot/debug-agentic-triage-error

Conversation

Copilot AI commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

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.

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
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
@azure-sdk

Copy link
Copy Markdown
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

Merged via the queue into main with commit 991dd24 Apr 21, 2026
30 checks passed
@timotheeguerin
Timothee Guerin (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