diff options
| author | Jacob Richman <[email protected]> | 2025-05-30 22:18:01 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-30 15:18:01 -0700 |
| commit | 01768d7759b81a0f1483c751206f6afcae6fc505 (patch) | |
| tree | befda8dfe9807bfee805e291fa203cfe8dfefe29 /packages/cli/src/ui/components/Footer.tsx | |
| parent | 3291ffbe099f2fdc8f88a0c1bb06fb43b65326a9 (diff) | |
feat: add --show_memory_usage flag to display memory usage in status bar (#606)
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> ); |
