Merge pull request #1449 from kaitranntt/codex/fix-gemini-tooltip-rendering-bug

fix(ui): preserve Gemini tier fallback without entitlement
This commit is contained in:
Kai (Tam Nhu) Tran authored and GitHub committed 2026-05-30 15:45:44 -04:00
commit 7b1e6cd209
2 files changed
+16 -1

No files matched your search

@@ -378,7 +378,8 @@ export function QuotaTooltipContent({ quota, resetTime }: QuotaTooltipContentPro
if (isGeminiQuotaResult(quota)) {
const hasBucketResetTime = quota.buckets.some((bucket) => !!bucket.resetTime);
const hasEntitlementTier =
!!quota.entitlement?.rawTierLabel || quota.entitlement?.normalizedTier !== 'unknown';
!!quota.entitlement?.rawTierLabel ||
(!!quota.entitlement && quota.entitlement.normalizedTier !== 'unknown');
const distinctTokenTypes = Array.from(
new Set(
quota.buckets