Commit d74ade1
fix(gain): match full command for retry detection
Partition the LAG window by the full original_cmd instead of just the
base command name. The previous approach grouped all invocations of a
bare command (e.g. every `ls`) into one partition, so any pair within
60 s was counted as a retry -- producing 99 %+ false-positive rates on
high-frequency commands.
Matching the full command string means only identical commands re-run
within 60 s are flagged, which is what "retry" actually means.
Reported-by: @aeppling in PR #900
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 928a4a2 commit d74ade1
1 file changed
Lines changed: 1 addition & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
| 502 | + | |
517 | 503 | | |
518 | 504 | | |
519 | 505 | | |
| |||
0 commit comments