MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isRateLimitErrorMessage

Function isRateLimitErrorMessage

src/services/rateLimitMessages.ts:32–34  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

30 * Check if a message is a rate limit error
31 */
32export function isRateLimitErrorMessage(text: string): boolean {
33 return RATE_LIMIT_ERROR_PREFIXES.some(prefix => text.startsWith(prefix))
34}
35
36export type RateLimitMessage = {
37 message: string

Callers 1

AssistantTextMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected