fix(quota): add explicit 429 rate limit handling

Match pattern from quota-fetcher-codex.ts for consistent
user-friendly error messages when rate limited.
This commit is contained in:
kaitranntt
2026-02-02 23:40:15 -05:00
parent 4fd2f601f6
commit e596ab487d
+9
View File
@@ -427,6 +427,15 @@ async function fetchAvailableModels(accessToken: string, _projectId: string): Pr
};
}
if (response.status === 429) {
return {
success: false,
models: [],
lastUpdated: Date.now(),
error: 'Rate limited - try again later',
};
}
if (!response.ok) {
return {
success: false,