fix(agents): scope loop detection to runs

This commit is contained in:
Peter Steinberger
2026-04-27 12:59:54 +01:00
parent d73e2ee774
commit 6a55a00da4
7 changed files with 162 additions and 5 deletions

View File

@@ -74,6 +74,7 @@ Per-agent override (optional):
- `detectors.pingPong`: detects alternating ping-pong patterns.
For `exec`, no-progress checks compare stable command outcomes and ignore volatile runtime metadata such as duration, PID, session ID, and working directory.
When a run id is available, recent tool-call history is evaluated only within that run so scheduled heartbeat cycles and fresh runs do not inherit stale loop counts from earlier runs.
## Recommended setup