Commit 3371c77
authored
bug(/review): Fix agent not posting feedback in GitHub (#141)
This change modifies the prompt to constrain the agent on how the review
must be submitted to GitHub. This aims to improve what is seen in #134
where "more than 50% of the time PR review fails due to tool problems
posting the review."
Since this is occurring intermittently - this is a probabilistic issue,
not a permissions issue, which is why the prompt is being changed.
Primary changes:
1. Sometimes the agent made tool calls for a fake repo `owner` to make
tool calls. The change instructs the agent to list the repository owner.
1. Surprisingly, even when the agent hallucinated a fake repo `owner`
and made tool calls with this, our logs show that these calls were
successful (so the agent thought things were working), which is why
workflow errors did not surface. I have filed a
[bug](github/github-mcp-server#842) with
GitHub MCP to ensure they are returning failures, and will ensure that
`gemini-cli` logs/telemetry is properly capturing and recording tool
call failures.
1. Sometimes the agent didn't attempt to make tool calls. The prompt was
made to be more explicit that this is a necessity.
Fixes #1341 parent 43a726d commit 3371c77
File tree
2 files changed
+38
-20
lines changed- .github/workflows
- examples/workflows/pr-review
2 files changed
+38
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
207 | 211 | | |
208 | 212 | | |
209 | 213 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
214 | 219 | | |
215 | | - | |
| 220 | + | |
216 | 221 | | |
217 | | - | |
| 222 | + | |
218 | 223 | | |
219 | | - | |
| 224 | + | |
220 | 225 | | |
221 | 226 | | |
222 | 227 | | |
| |||
376 | 381 | | |
377 | 382 | | |
378 | 383 | | |
379 | | - | |
| 384 | + | |
380 | 385 | | |
381 | 386 | | |
382 | 387 | | |
383 | | - | |
| 388 | + | |
384 | 389 | | |
385 | 390 | | |
386 | 391 | | |
| |||
431 | 436 | | |
432 | 437 | | |
433 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
434 | 443 | | |
435 | 444 | | |
436 | 445 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
207 | 211 | | |
208 | 212 | | |
209 | 213 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
214 | 219 | | |
215 | | - | |
| 220 | + | |
216 | 221 | | |
217 | | - | |
| 222 | + | |
218 | 223 | | |
219 | | - | |
| 224 | + | |
220 | 225 | | |
221 | 226 | | |
222 | 227 | | |
| |||
376 | 381 | | |
377 | 382 | | |
378 | 383 | | |
379 | | - | |
| 384 | + | |
380 | 385 | | |
381 | 386 | | |
382 | 387 | | |
383 | | - | |
| 388 | + | |
384 | 389 | | |
385 | 390 | | |
386 | 391 | | |
| |||
431 | 436 | | |
432 | 437 | | |
433 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
434 | 443 | | |
435 | 444 | | |
436 | 445 | | |
| |||
0 commit comments