test(codex): log non-retryable refresh error and cover single-attempt behavior

This commit is contained in:
lyd123qw2008
2026-02-23 22:41:33 +08:00
parent 7acd428507
commit 3b3e0d1141
2 changed files with 45 additions and 0 deletions

View File

@@ -267,6 +267,7 @@ func (o *CodexAuth) RefreshTokensWithRetry(ctx context.Context, refreshToken str
return tokenData, nil
}
if isNonRetryableRefreshErr(err) {
log.Warnf("Token refresh attempt %d failed with non-retryable error: %v", attempt+1, err)
return nil, err
}