From 8ec366de42dd66256895f16c9669469791ca823a Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Mon, 9 Mar 2026 05:50:59 +0000 Subject: executor: strengthen rate-limit avoidance in classifier Updated isQuotaExhausted to detect more Claude quota messages. Added 'rate limit reached (rejected)' to quota exhausted checks. Strengthened classifier prompt to explicitly forbid selecting rate-limited agents. Improved Pool to set 5h rate limit on quota exhaustion. --- internal/executor/ratelimit.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/executor/ratelimit.go') diff --git a/internal/executor/ratelimit.go b/internal/executor/ratelimit.go index deaad18..aa9df99 100644 --- a/internal/executor/ratelimit.go +++ b/internal/executor/ratelimit.go @@ -34,7 +34,9 @@ func isQuotaExhausted(err error) bool { } msg := strings.ToLower(err.Error()) return strings.Contains(msg, "hit your limit") || - strings.Contains(msg, "you've hit your limit") + strings.Contains(msg, "you've hit your limit") || + strings.Contains(msg, "you have hit your limit") || + strings.Contains(msg, "rate limit reached (rejected)") } // parseRetryAfter extracts a Retry-After duration from an error message. -- cgit v1.2.3