Skip to content

Release v0.3.2

Latest

Choose a tag to compare

@AceGreenman AceGreenman released this 16 Apr 03:29

fix: detect rate-limit and billing errors in text parts for fallback

classifyErrorType only classified missing_api_key and model_not_found, so when opencode didn't populate info.error on message.updated events (which happens for FreeUsageLimitError and Insufficient balance), the text-scanning fallback path missed them.

  • classifyErrorType now checks RETRYABLE_ERROR_PATTERNS → returns "rate_limit"
  • detectErrorInTextParts directly checks RETRYABLE_ERROR_PATTERNS as a last resort