diff options
| author | shrutip90 <[email protected]> | 2025-08-14 11:15:48 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-14 18:15:48 +0000 |
| commit | 69c55827239b5c937c177eef4b4fbcc2758ef23e (patch) | |
| tree | f2dc2f1a55e64cd9a235bcf0e3d9caaa7f552b7c /packages/cli/src/ui/components/Footer.tsx | |
| parent | 69d666cfafe97e49a6cacb306df9a737d4aa9f20 (diff) | |
feat: Show untrusted status in the Footer (#6210)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/components/Footer.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/Footer.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/cli/src/ui/components/Footer.tsx b/packages/cli/src/ui/components/Footer.tsx index aaf6c176..09b94ec1 100644 --- a/packages/cli/src/ui/components/Footer.tsx +++ b/packages/cli/src/ui/components/Footer.tsx @@ -32,6 +32,7 @@ interface FooterProps { promptTokenCount: number; nightly: boolean; vimMode?: string; + isTrustedFolder?: boolean; } export const Footer: React.FC<FooterProps> = ({ @@ -47,6 +48,7 @@ export const Footer: React.FC<FooterProps> = ({ promptTokenCount, nightly, vimMode, + isTrustedFolder, }) => { const { columns: terminalWidth } = useTerminalSize(); @@ -90,7 +92,7 @@ export const Footer: React.FC<FooterProps> = ({ )} </Box> - {/* Middle Section: Centered Sandbox Info */} + {/* Middle Section: Centered Trust/Sandbox Info */} <Box flexGrow={isNarrow ? 0 : 1} alignItems="center" @@ -99,7 +101,9 @@ export const Footer: React.FC<FooterProps> = ({ paddingX={isNarrow ? 0 : 1} paddingTop={isNarrow ? 1 : 0} > - {process.env.SANDBOX && process.env.SANDBOX !== 'sandbox-exec' ? ( + {isTrustedFolder === false ? ( + <Text color={theme.status.warning}>untrusted</Text> + ) : process.env.SANDBOX && process.env.SANDBOX !== 'sandbox-exec' ? ( <Text color="green"> {process.env.SANDBOX.replace(/^gemini-(?:cli-)?/, '')} </Text> |
