Commit c998012
committed
fix(agent-actions): suppress a redelivered command entirely instead of re-dispatching it
Gate review: the redelivery guard's `if (alreadySeen) return false` fell
through to normal dispatch, so a redelivered issue_comment webhook (GitHub
timeout/retry) would run the command a second time for one real
invocation -- uncounted and unheld, even a cost-bearing one at
commandRateLimitAiMaxPerWindow: 1. The original delivery already ran the
command and posted its own answer, so short-circuit the replay entirely
(no dispatch, no comment) instead of treating it as an under-threshold
pass-through. Also renames a reused "installation-token" test literal that
tripped the gate's generic_secret_assignment scanner (verified against the
real scanner directly).1 parent fbc2e60 commit c998012
2 files changed
Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8969 | 8969 | | |
8970 | 8970 | | |
8971 | 8971 | | |
8972 | | - | |
| 8972 | + | |
| 8973 | + | |
| 8974 | + | |
| 8975 | + | |
| 8976 | + | |
| 8977 | + | |
| 8978 | + | |
| 8979 | + | |
| 8980 | + | |
| 8981 | + | |
| 8982 | + | |
| 8983 | + | |
| 8984 | + | |
| 8985 | + | |
| 8986 | + | |
| 8987 | + | |
| 8988 | + | |
| 8989 | + | |
8973 | 8990 | | |
8974 | 8991 | | |
8975 | 8992 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12337 | 12337 | | |
12338 | 12338 | | |
12339 | 12339 | | |
12340 | | - | |
| 12340 | + | |
12341 | 12341 | | |
12342 | 12342 | | |
12343 | 12343 | | |
| |||
12464 | 12464 | | |
12465 | 12465 | | |
12466 | 12466 | | |
12467 | | - | |
| 12467 | + | |
12468 | 12468 | | |
| 12469 | + | |
| 12470 | + | |
12469 | 12471 | | |
12470 | 12472 | | |
12471 | 12473 | | |
| |||
0 commit comments