diff options
Diffstat (limited to 'packages/cli/src/ui/components/Footer.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/Footer.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/cli/src/ui/components/Footer.tsx b/packages/cli/src/ui/components/Footer.tsx index 04a2f96f..22615779 100644 --- a/packages/cli/src/ui/components/Footer.tsx +++ b/packages/cli/src/ui/components/Footer.tsx @@ -9,6 +9,8 @@ import { Box, Text } from 'ink'; import { Colors } from '../colors.js'; import { shortenPath, tildeifyPath } from '@gemini-code/server'; import { ConsoleSummaryDisplay } from './ConsoleSummaryDisplay.js'; +import process from 'node:process'; +import { MemoryUsageDisplay } from './MemoryUsageDisplay.js'; interface FooterProps { model: string; @@ -20,6 +22,7 @@ interface FooterProps { corgiMode: boolean; errorCount: number; showErrorDetails: boolean; + showMemoryUsage?: boolean; } export const Footer: React.FC<FooterProps> = ({ @@ -31,6 +34,7 @@ export const Footer: React.FC<FooterProps> = ({ corgiMode, errorCount, showErrorDetails, + showMemoryUsage, }) => ( <Box marginTop={1} justifyContent="space-between" width="100%"> <Box> @@ -86,6 +90,7 @@ export const Footer: React.FC<FooterProps> = ({ <ConsoleSummaryDisplay errorCount={errorCount} /> </Box> )} + {showMemoryUsage && <MemoryUsageDisplay />} </Box> </Box> ); |
