@@ -351,6 +351,9 @@ export function SessionControls({ ws, activeSession, inputRef, onAfterAction, on
351351 const isTransport = activeSession ?. runtimeType === 'transport' ;
352352 const isCodex = activeSession ?. agentType === 'codex' || activeSession ?. agentType === 'codex-sdk' ;
353353 const isQwen = activeSession ?. agentType === 'qwen' ;
354+ const compactQuotaText = isCodex
355+ ? ( activeSession ?. quotaLabel ?? '' )
356+ : [ activeSession ?. quotaLabel , activeSession ?. quotaUsageLabel ] . filter ( Boolean ) . join ( ' · ' ) ;
354357 const qwenTier = getQwenAuthTier ( activeSession ?. qwenAuthType ) ;
355358 const qwenTierLabel = qwenTier === QWEN_AUTH_TIERS . FREE
356359 ? t ( 'session.qwen_tier_free' )
@@ -962,12 +965,12 @@ export function SessionControls({ ws, activeSession, inputRef, onAfterAction, on
962965 </ div >
963966
964967 { /* Plan/quota badges — compact inline display left of model selector */ }
965- { ( activeSession ?. quotaLabel || activeSession ?. quotaUsageLabel || activeSession ?. planLabel ) && (
968+ { ( compactQuotaText || activeSession ?. planLabel ) && (
966969 < div class = "session-ctx-wrap" >
967- { ( activeSession . quotaLabel || activeSession . quotaUsageLabel ) && (
968- < span class = "session-usage-quota-inline" > { [ activeSession . quotaLabel , activeSession . quotaUsageLabel ] . filter ( Boolean ) . join ( ' · ' ) } </ span >
970+ { compactQuotaText && (
971+ < span class = "session-usage-quota-inline" > { compactQuotaText } </ span >
969972 ) }
970- { activeSession . planLabel && (
973+ { activeSession ? .planLabel && (
971974 < span class = "session-usage-quota-inline" style = { { color : '#93c5fd' } } > { activeSession . planLabel } </ span >
972975 ) }
973976 </ div >
0 commit comments