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 b8857da0e6
commit 8fa8b7bf90

View File

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