diff --git a/apps/ui/src/components/usage-popover.tsx b/apps/ui/src/components/usage-popover.tsx index fa8a6a1b..ac15a519 100644 --- a/apps/ui/src/components/usage-popover.tsx +++ b/apps/ui/src/components/usage-popover.tsx @@ -333,19 +333,43 @@ export function UsagePopover() { return 'bg-green-500'; }; + // Determine which provider icon and percentage to show based on active tab + const getTabInfo = () => { + if (activeTab === 'claude') { + return { + icon: AnthropicIcon, + percentage: claudeMaxPercentage, + isStale: isClaudeStale, + }; + } + return { + icon: OpenAIIcon, + percentage: codexMaxPercentage, + isStale: isCodexStale, + }; + }; + + const tabInfo = getTabInfo(); + const statusColor = getStatusInfo(tabInfo.percentage).color; + const ProviderIcon = tabInfo.icon; + const trigger = ( -