diff options
| author | Miguel Solorio <[email protected]> | 2025-07-11 13:43:57 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-11 20:43:57 +0000 |
| commit | 448838dea83cefc75904e36982986232b6e5414f (patch) | |
| tree | 3d5db24e1b988804eed74aacb956c236e5ffc8a2 /packages/cli/src/ui/App.tsx | |
| parent | 4197f3027857f1f6e83aedacb7e47a07690e2095 (diff) | |
Add visual cues for nightly version (#3701)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/App.tsx')
| -rw-r--r-- | packages/cli/src/ui/App.tsx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index 4e2c7242..519a4b53 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -84,6 +84,7 @@ interface AppProps { config: Config; settings: LoadedSettings; startupWarnings?: string[]; + version: string; } export const AppWrapper = (props: AppProps) => ( @@ -92,10 +93,11 @@ export const AppWrapper = (props: AppProps) => ( </SessionStatsProvider> ); -const App = ({ config, settings, startupWarnings = [] }: AppProps) => { +const App = ({ config, settings, startupWarnings = [], version }: AppProps) => { useBracketedPaste(); const [updateMessage, setUpdateMessage] = useState<string | null>(null); const { stdout } = useStdout(); + const nightly = version.includes('nightly'); useEffect(() => { checkForUpdates().then(setUpdateMessage); @@ -315,7 +317,7 @@ const App = ({ config, settings, startupWarnings = [] }: AppProps) => { ⚡ To continue accessing the ${currentModel} model today, consider using /auth to switch to using a paid API key from AI Studio at https://aistudio.google.com/apikey`; } else { // Default fallback message for other cases (like consecutive 429s) - message = `⚡ Automatically switching from ${currentModel} to ${fallbackModel} for faster responses for the remainder of this session. + message = `⚡ Automatically switching from ${currentModel} to ${fallbackModel} for faster responses for the remainder of this session. ⚡ Possible reasons for this are that you have received multiple consecutive capacity errors or you have reached your daily ${currentModel} quota limit ⚡ To increase your limits, upgrade to a Gemini Code Assist Standard or Enterprise plan with higher limits at https://goo.gle/set-up-gemini-code-assist ⚡ Or you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key @@ -673,7 +675,11 @@ const App = ({ config, settings, startupWarnings = [] }: AppProps) => { key={staticKey} items={[ <Box flexDirection="column" key="header"> - <Header terminalWidth={terminalWidth} /> + <Header + terminalWidth={terminalWidth} + version={version} + nightly={nightly} + /> {!settings.merged.hideTips && <Tips config={config} />} </Box>, ...history.map((h) => ( @@ -931,6 +937,7 @@ const App = ({ config, settings, startupWarnings = [] }: AppProps) => { config.getDebugMode() || config.getShowMemoryUsage() } promptTokenCount={sessionStats.lastPromptTokenCount} + nightly={nightly} /> </Box> </Box> |
