From dea5ad9c6a5a331db93ec04dbe23ae48729e3e10 Mon Sep 17 00:00:00 2001 From: Sebastian <19554889+sebslight@users.noreply.github.com> Date: Mon, 9 Feb 2026 21:05:54 -0500 Subject: [PATCH] fix(agents): match billing upgrade error prefix --- src/agents/pi-embedded-helpers/errors.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }