fix(runtime-fallback): detect bare 429 rate-limit signals (fixes #2677)

This commit is contained in:
MoerAI
2026-03-20 11:00:00 +09:00
parent d2a49428b9
commit 3773e370ec
3 changed files with 41 additions and 1 deletions
@@ -31,6 +31,20 @@ describe("runtime-fallback error classifier", () => {
expect(signal).toBeDefined()
})
test("detects too-many-requests auto-retry status signals without countdown text", () => {
//#given
const info = {
status:
"Too Many Requests: Sorry, you've exhausted this model's rate limit. Please try a different model.",
}
//#when
const signal = extractAutoRetrySignal(info)
//#then
expect(signal).toBeDefined()
})
test("treats cooling-down retry messages as retryable", () => {
//#given
const error = {