fix(cli): ensure footer line 2 always renders

- Show '^0  v0  $0.000' instead of '—' when no token data yet
- Always show model slot ('awaiting model' as placeholder)
- Add minHeight={1} to prevent line collapse
This commit is contained in:
2026-03-15 13:56:03 -05:00
parent e42d6eadff
commit e6708c18ed

View File

@@ -55,7 +55,7 @@ export function BottomBar({
</Box> </Box>
{/* Line 2: token stats ····· (provider) model */} {/* Line 2: token stats ····· (provider) model */}
<Box justifyContent="space-between"> <Box justifyContent="space-between" minHeight={1}>
<Box> <Box>
{hasTokens ? ( {hasTokens ? (
<> <>
@@ -90,16 +90,14 @@ export function BottomBar({
)} )}
</> </>
) : ( ) : (
<Text dimColor></Text> <Text dimColor>^0 v0 $0.000</Text>
)} )}
</Box> </Box>
<Box> <Box>
{(providerName ?? modelName) && ( <Text dimColor>
<Text dimColor> {providerName ? `(${providerName}) ` : ''}
{providerName ? `(${providerName}) ` : ''} {modelName ?? 'awaiting model'}
{modelName ?? ''} </Text>
</Text>
)}
</Box> </Box>
</Box> </Box>
</Box> </Box>