Repository navigation
Commit cd27a87
fix: improve issue-triage prompt robustness to prevent no-output failures (#10504)
Agentic Triage workflow ([run
24996553319](https://github.com/microsoft/typespec/actions/runs/24996553319))
produced no safe outputs despite the agent running for ~4 minutes. This
is the second failure after PR #10502 fixed tool name references — the
agent still silently failed to call any safe output tool.
Analysis of the generated prompt and MCP gateway logs revealed three
issues:
- **Missing `get_file_contents` tool reference**: The prompt said "read
the file `eng/common/config/labels.ts`" without specifying the MCP tool
name or parameters. Now explicitly references `get_file_contents` with
`owner`/`repo`.
- **Unconditional `web-fetch` reference**: The prompt unconditionally
instructed the agent to "Use `web-fetch` to verify the playground link",
but only `safeoutputs` and `github` MCP servers were registered —
`web-fetch` was not available. Changed to conditional: "If the
`web_fetch` tool is available, use it to verify..."
- **No fallback instruction**: Added an explicit `## Important` section
reinforcing the requirement to call at least one safe output tool
(`add_comment`, `add_labels`, or `noop`) before finishing, with guidance
to call `noop` on errors.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>1 parent b2fa417 commit cd27a87
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
0 commit comments