diff --git a/packages/cli/src/ui/privacy/CloudFreePrivacyNotice.tsx b/packages/cli/src/ui/privacy/CloudFreePrivacyNotice.tsx index b6be9a7269..ba32537e17 100644 --- a/packages/cli/src/ui/privacy/CloudFreePrivacyNotice.tsx +++ b/packages/cli/src/ui/privacy/CloudFreePrivacyNotice.tsx @@ -7,7 +7,7 @@ import { Box, Newline, Text } from 'ink'; import { RadioButtonSelect } from '../components/shared/RadioButtonSelect.js'; import { usePrivacySettings } from '../hooks/usePrivacySettings.js'; -import { CloudPaidPrivacyNotice } from './CloudPaidPrivacyNotice.js'; + import type { Config } from '@google/gemini-cli-core'; import { theme } from '../semantic-colors.js'; import { useKeypress } from '../hooks/useKeypress.js'; @@ -26,7 +26,10 @@ export const CloudFreePrivacyNotice = ({ useKeypress( (key) => { - if (privacyState.error && key.name === 'escape') { + if ( + (privacyState.error || privacyState.isFreeTier === false) && + key.name === 'escape' + ) { onExit(); } }, @@ -49,7 +52,19 @@ export const CloudFreePrivacyNotice = ({ } if (privacyState.isFreeTier === false) { - return ; + return ( + + + Gemini Code Assist Privacy Notice + + + + https://developers.google.com/gemini-code-assist/resources/privacy-notices + + + Press Esc to exit. + + ); } const items = [