@@ -4,7 +4,6 @@ import { useTheme } from '../hooks/use-theme'
44import { formatResetTime } from '../utils/time-format'
55
66import type { ClaudeQuotaData } from '../hooks/use-claude-quota-query'
7- import type { SubscriptionRateLimit } from '../hooks/use-subscription-query'
87
98interface BottomStatusLineProps {
109 /** Whether Claude OAuth is connected */
@@ -13,10 +12,6 @@ interface BottomStatusLineProps {
1312 isClaudeActive : boolean
1413 /** Quota data from Anthropic API */
1514 claudeQuota ?: ClaudeQuotaData | null
16- /** Whether the user has an active Codebuff Strong subscription */
17- hasSubscription : boolean
18- /** Rate limit data for the subscription */
19- subscriptionRateLimit ?: SubscriptionRateLimit | null
2015}
2116
2217/**
@@ -27,8 +22,6 @@ export const BottomStatusLine: React.FC<BottomStatusLineProps> = ({
2722 isClaudeConnected,
2823 isClaudeActive,
2924 claudeQuota,
30- hasSubscription,
31- subscriptionRateLimit,
3225} ) => {
3326 const theme = useTheme ( )
3427
@@ -47,13 +40,8 @@ export const BottomStatusLine: React.FC<BottomStatusLineProps> = ({
4740 : claudeQuota . sevenDayResetsAt
4841 : null
4942
50- // Show Claude when connected and not depleted (takes priority over Strong)
51- const showClaude = isClaudeConnected && ! isClaudeExhausted
52- // Show Strong when subscribed AND (no Claude connected OR Claude depleted)
53- const showStrong = hasSubscription && ( ! isClaudeConnected || isClaudeExhausted )
54-
55- // Don't render if there's nothing to show
56- if ( ! showClaude && ! showStrong && ! ( isClaudeConnected && isClaudeExhausted ) ) {
43+ // Only show when Claude is connected
44+ if ( ! isClaudeConnected ) {
5745 return null
5846 }
5947
@@ -64,28 +52,6 @@ export const BottomStatusLine: React.FC<BottomStatusLineProps> = ({
6452 ? theme . success
6553 : theme . muted
6654
67- // Subscription remaining percentage (based on weekly)
68- const subscriptionRemaining = subscriptionRateLimit
69- ? 100 - subscriptionRateLimit . weeklyPercentUsed
70- : null
71- const isSubscriptionLimited = subscriptionRateLimit ?. limited === true
72-
73- // Get subscription reset time
74- const subscriptionResetTime = subscriptionRateLimit
75- ? subscriptionRateLimit . reason === 'block_exhausted' && subscriptionRateLimit . blockResetsAt
76- ? new Date ( subscriptionRateLimit . blockResetsAt )
77- : subscriptionRateLimit . weeklyResetsAt
78- ? new Date ( subscriptionRateLimit . weeklyResetsAt )
79- : null
80- : null
81-
82- // Determine dot color for Strong: red if limited, green if has remaining credits, muted otherwise
83- const strongDotColor = isSubscriptionLimited
84- ? theme . error
85- : subscriptionRemaining !== null && subscriptionRemaining > 0
86- ? theme . success
87- : theme . muted
88-
8955 return (
9056 < box
9157 style = { {
@@ -96,8 +62,8 @@ export const BottomStatusLine: React.FC<BottomStatusLineProps> = ({
9662 gap : 2 ,
9763 } }
9864 >
99- { /* Show Claude subscription when connected (even when depleted, to show reset time) */ }
100- { isClaudeConnected && ! isClaudeExhausted && (
65+ { /* Show Claude subscription when connected and not depleted */ }
66+ { ! isClaudeExhausted && (
10167 < box
10268 style = { {
10369 flexDirection : 'row' ,
@@ -114,7 +80,7 @@ export const BottomStatusLine: React.FC<BottomStatusLineProps> = ({
11480 ) }
11581
11682 { /* Show Claude as depleted when exhausted */ }
117- { isClaudeConnected && isClaudeExhausted && (
83+ { isClaudeExhausted && (
11884 < box
11985 style = { {
12086 flexDirection : 'row' ,
@@ -129,25 +95,6 @@ export const BottomStatusLine: React.FC<BottomStatusLineProps> = ({
12995 ) }
13096 </ box >
13197 ) }
132-
133- { /* Show Codebuff Strong when subscribed and Claude not healthy */ }
134- { showStrong && (
135- < box
136- style = { {
137- flexDirection : 'row' ,
138- alignItems : 'center' ,
139- gap : 0 ,
140- } }
141- >
142- < text style = { { fg : strongDotColor } } > ●</ text >
143- < text style = { { fg : theme . muted } } > Codebuff Strong</ text >
144- { isSubscriptionLimited && subscriptionResetTime ? (
145- < text style = { { fg : theme . muted } } > { ` · resets in ${ formatResetTime ( subscriptionResetTime ) } ` } </ text >
146- ) : subscriptionRemaining !== null ? (
147- < BatteryIndicator value = { subscriptionRemaining } theme = { theme } />
148- ) : null }
149- </ box >
150- ) }
15198 </ box >
15299 )
153100}
0 commit comments