revert: remove '402' billing pattern causing false positives

Reverts 5428422 - the pattern matched tool call IDs containing "402"
This commit is contained in:
ajmallesh
2026-01-16 17:29:54 -08:00
parent 9606ffcf70
commit 63741d780e
2 changed files with 0 additions and 5 deletions
-2
View File
@@ -211,9 +211,7 @@ export function classifyErrorForTemporal(error: unknown): TemporalErrorClassific
// === BILLING ERRORS (Retryable with long backoff) ===
// Anthropic returns billing as 400 invalid_request_error
// Human can add credits OR wait for spending cap to reset (5-30 min backoff)
// 402 is HTTP "Payment Required" - universal across providers (OpenRouter, etc.)
if (
message.includes('402') ||
message.includes('billing_error') ||
message.includes('credit balance is too low') ||
message.includes('insufficient credits') ||