From fd6f6b02ead1e7d68618437d483c4936a977d1e6 Mon Sep 17 00:00:00 2001 From: Brandon Keiji Date: Wed, 28 May 2025 23:30:05 +0000 Subject: feat: add git branch name to footer (#589) --- packages/cli/src/ui/components/Footer.tsx | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'packages/cli/src/ui/components') diff --git a/packages/cli/src/ui/components/Footer.tsx b/packages/cli/src/ui/components/Footer.tsx index 4a0275cc..e9cece4c 100644 --- a/packages/cli/src/ui/components/Footer.tsx +++ b/packages/cli/src/ui/components/Footer.tsx @@ -7,11 +7,13 @@ import React from 'react'; import { Box, Text } from 'ink'; import { Colors } from '../colors.js'; -import { shortenPath, tildeifyPath, Config } from '@gemini-code/server'; +import { shortenPath, tildeifyPath } from '@gemini-code/server'; import { ConsoleSummaryDisplay } from './ConsoleSummaryDisplay.js'; interface FooterProps { - config: Config; + model: string; + targetDir: string; + branchName?: string; debugMode: boolean; debugMessage: string; cliVersion: string; @@ -21,7 +23,9 @@ interface FooterProps { } export const Footer: React.FC = ({ - config, + model, + targetDir, + branchName, debugMode, debugMessage, corgiMode, @@ -31,7 +35,10 @@ export const Footer: React.FC = ({ - {shortenPath(tildeifyPath(config.getTargetDir()), 70)} + {shortenPath(tildeifyPath(targetDir), 70)} + {branchName && ( + ({branchName}*) + )} {debugMode && ( @@ -62,7 +69,7 @@ export const Footer: React.FC = ({ {/* Right Section: Gemini Label and Console Summary */} - {config.getModel()} + {model} {corgiMode && ( | -- cgit v1.2.3