fix(services): pass provider to refreshWithRetry to avoid tripping generic circuit breaker

This commit is contained in:
diegosouzapw
2026-04-17 20:18:58 -03:00
parent fceb9d4145
commit eff2c0beb7

View File

@@ -1840,7 +1840,8 @@ export async function handleChatCore({
const newCredentials = (await refreshWithRetry(
() => executor.refreshCredentials(credentials, log),
3,
log
log,
provider // Explicitly pass the provider to avoid universally tripping the "unknown" circuit breaker
)) as null | {
accessToken?: string;
copilotToken?: string;