From 2ab3e9a592442dc4b2f1f1d2654d1382677a4721 Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Thu, 22 Oct 2026 23:40:42 +0000 Subject: [PATCH] fix: fall through on credit exhaustion and missing models The plugin's built-in patterns miss OpenAI's credit_balance_exhausted and provider model-not-found errors, so a chain stopped at the first such model instead of advancing. Co-Authored-By: Claude Opus 5.5 --- opencode.jsonc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/opencode.jsonc b/opencode.jsonc index e5f7a19..8dc5f77 100644 --- a/opencode.jsonc +++ b/opencode.jsonc @@ -137,7 +137,11 @@ ], "retryable_error_patterns": [ "usage limits", - "exceeded your current quota" + "exceeded your current quota", + "credit_balance_exhausted", + "no credits remaining", + "model\\b.*\\bnot (?:be )?found", + "model_not_found" ], "cooldown_seconds": 3600, "timeout_seconds": 120