From fd6f6b02ead1e7d68618437d483c4936a977d1e6 Mon Sep 17 00:00:00 2001
From: Brandon Keiji <brandonkeiji@google.com>
Date: Wed, 28 May 2025 23:30:05 +0000
Subject: feat: add git branch name to footer (#589)

---
 packages/cli/src/ui/App.tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'packages/cli/src/ui/App.tsx')

diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx
index ac508fbf..dcd4d490 100644
--- a/packages/cli/src/ui/App.tsx
+++ b/packages/cli/src/ui/App.tsx
@@ -42,6 +42,7 @@ import process from 'node:process';
 import { getErrorMessage, type Config } from '@gemini-code/server';
 import { useLogger } from './hooks/useLogger.js';
 import { StreamingContext } from './contexts/StreamingContext.js';
+import { useGitBranchName } from './hooks/useGitBranchName.js';
 
 interface AppProps {
   config: Config;
@@ -269,6 +270,8 @@ export const App = ({
     return consoleMessages.filter((msg) => msg.type !== 'debug');
   }, [consoleMessages, config]);
 
+  const branchName = useGitBranchName(config.getTargetDir());
+
   return (
     <StreamingContext.Provider value={streamingState}>
       <Box flexDirection="column" marginBottom={1} width="90%">
@@ -430,8 +433,10 @@ export const App = ({
           )}
 
           <Footer
-            config={config}
+            model={config.getModel()}
+            targetDir={config.getTargetDir()}
             debugMode={config.getDebugMode()}
+            branchName={branchName}
             debugMessage={debugMessage}
             cliVersion={cliVersion}
             corgiMode={corgiMode}
-- 
cgit v1.2.3

