Repository navigation
Commit ff3ad2d
fix(processor): detect doom loops across messages instead of within current message
Count repeated identical tool calls across the full (compaction-filtered)
message history rather than only the trailing parts of the current
assistant message, so a doom loop is detected even when the repeats span
multiple assistant messages.
Ported from anomalyco#32089 (adapted for the Effect layer).
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>1 parent 8940efc commit ff3ad2d
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
361 | 359 | | |
362 | 360 | | |
363 | 361 | | |
364 | 362 | | |
365 | 363 | | |
366 | 364 | | |
367 | | - | |
| 365 | + | |
| 366 | + | |
368 | 367 | | |
369 | 368 | | |
370 | 369 | | |
| |||
0 commit comments