/**
 * Rate-limit error message detection — stub.
 *
 * The upstream module pattern-matched assistant text against known
 * rate-limit error formats so the UI could render a styled error block
 * instead of plain prose. Sandcode's rateLimits stub returns a generic
 * 'Rate limit exceeded.' string, but the renderer-side detector still
 * needs to compile.
 */

export function isRateLimitErrorMessage(content: string): boolean {
  if (!content) return false
  const lower = content.toLowerCase()
  return (
    lower.includes('rate limit') || lower.includes('too many requests') || lower.includes('429')
  )
}
