fix(model-fallback): retry forbidden provider errors

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Choi Kijin / 최 기진 / チョイ キジン
2026-04-28 15:29:33 +09:00
parent 613e4a6c12
commit 25548f2561
6 changed files with 59 additions and 29 deletions
+11
View File
@@ -237,6 +237,17 @@ describe("model-error-classifier", () => {
//#then
expect(result).toBe(true)
})
test("treats forbidden provider message as retryable", () => {
//#given
const error = { message: "Forbidden: Selected provider is forbidden" }
//#when
const result = shouldRetryError(error)
//#then
expect(result).toBe(true)
})
})
export {}