fix(failover): scope openrouter-specific matchers (#60909)

This commit is contained in:
Altay
2026-04-04 18:24:03 +03:00
committed by GitHub
parent fba6e194bd
commit ae460eff84
7 changed files with 88 additions and 25 deletions

View File

@@ -279,7 +279,7 @@ export async function executePreparedCliRun(
});
}
const err = stderr || stdout || "CLI failed.";
const reason = classifyFailoverReason(err) ?? "unknown";
const reason = classifyFailoverReason(err, { provider: params.provider }) ?? "unknown";
const status = resolveFailoverStatus(reason);
throw new FailoverError(err, {
reason,