Commit ca07626
fix(skill): add retry guard to prevent intra-run duplicate reviews (#1322)
## Summary
- Adds explicit guidance in the `review-pr` skill to verify whether a
review was already posted before retrying a failed/stuck API call
- Prevents intra-run duplicate reviews (distinct from cross-run dedup in
#1139)
Fixes #1321
## Context
Run 22784882686 posted the same review body twice on PR #1320 (4 minutes
apart) because the bot thought the first API call was "stuck" and
retried with `gh pr review --comment` without checking if the review had
already been posted.
## Test plan
- [ ] Next external PR review should not produce duplicate reviews even
if the API call is slow
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 691060e commit ca07626
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
287 | | - | |
288 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
289 | 296 | | |
290 | 297 | | |
291 | 298 | | |
| |||
0 commit comments