Repository navigation
fix: add repos toolset to issue-triage agent to fix workflow failure - #10441
Merged
Timothee Guerin (timotheeguerin) merged 3 commits intoApr 21, 2026
Merged
Conversation
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
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
Timothee Guerin (timotheeguerin)
approved these changes
Apr 21, 2026
Timothee Guerin (timotheeguerin)
marked this pull request as ready for review
April 21, 2026 20:31
Collaborator
|
You can try these changes here
|
Mark Cowlishaw (markcowl)
approved these changes
Apr 21, 2026
Timothee Guerin (timotheeguerin)
deleted the
copilot/debug-agentic-triage-error
branch
April 21, 2026 23:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 theissuestoolset—noget_file_contentstool is available.Changes
repostoolset to the GitHub MCP server configuration (toolsets: [issues, repos]) so the agent has access toget_file_contentsand can read the labels file directlyThe prompt is loaded at runtime via
{{#runtime-import}}, so this takes effect without regenerating the lock.yml.