diff --git a/clients/tabby-agent/src/utils/error.ts b/clients/tabby-agent/src/utils/error.ts index ad017fe5ef1a..0df1fd0b4a03 100644 --- a/clients/tabby-agent/src/utils/error.ts +++ b/clients/tabby-agent/src/utils/error.ts @@ -36,7 +36,7 @@ export function isUnauthorizedError(error: any) { } export function isRateLimitedError(error: any) { - return error instanceof HttpError && [429].includes(error.status); + return error instanceof HttpError && error.status === 429; } export function errorToString(error: Error) {