diff --git a/src/agents/pi-embedded-helpers/errors.ts b/src/agents/pi-embedded-helpers/errors.ts index f718786d12f2..c340c322a5ca 100644 --- a/src/agents/pi-embedded-helpers/errors.ts +++ b/src/agents/pi-embedded-helpers/errors.ts @@ -473,6 +473,7 @@ const ERROR_PATTERNS = { "insufficient credits", "credit balance", "plans & billing", + "billing:", "insufficient balance", ], auth: [ @@ -534,7 +535,7 @@ export function isBillingErrorMessage(raw: string): boolean { if (!value) { return false; } - + return matchesErrorPatterns(value, ERROR_PATTERNS.billing); }