diff --git a/packages/cli/src/config/footerItems.ts b/packages/cli/src/config/footerItems.ts
index 472a3a5f9b..b9ba040c9f 100644
--- a/packages/cli/src/config/footerItems.ts
+++ b/packages/cli/src/config/footerItems.ts
@@ -10,61 +10,51 @@ export const ALL_ITEMS = [
{
id: 'cwd',
header: 'Path',
- label: 'cwd',
description: 'Current directory path',
},
{
id: 'git-branch',
header: 'Branch',
- label: 'git-branch',
description: 'Current git branch name',
},
{
id: 'sandbox-status',
header: '/docs',
- label: 'sandbox-status',
description: 'Sandbox type and trust indicator',
},
{
id: 'model-name',
header: '/model',
- label: 'model-name',
description: 'Current model identifier',
},
{
id: 'context-remaining',
header: 'Context',
- label: 'context-remaining',
description: 'Percentage of context window remaining',
},
{
id: 'quota',
header: '/stats',
- label: 'quota',
description: 'Remaining usage on daily limit',
},
{
id: 'memory-usage',
header: 'Memory',
- label: 'memory-usage',
description: 'Node.js heap memory usage',
},
{
id: 'session-id',
header: 'Session',
- label: 'session-id',
description: 'Unique identifier for the current session',
},
{
id: 'code-changes',
header: 'Diff',
- label: 'code-changes',
description: 'Lines added/removed in the session',
},
{
id: 'token-count',
header: 'Tokens',
- label: 'token-count',
description: 'Total tokens used in the session',
},
] as const;
@@ -74,7 +64,6 @@ export type FooterItemId = (typeof ALL_ITEMS)[number]['id'];
export interface FooterItem {
id: string;
header: string;
- label: string;
description: string;
}
diff --git a/packages/cli/src/ui/components/Footer.test.tsx b/packages/cli/src/ui/components/Footer.test.tsx
index b3164d8c95..b68007603c 100644
--- a/packages/cli/src/ui/components/Footer.test.tsx
+++ b/packages/cli/src/ui/components/Footer.test.tsx
@@ -558,7 +558,7 @@ describe('', () => {
expect(output).toContain('/docs');
expect(output).toContain('/model');
// Data should be present
- expect(output).toContain('main*');
+ expect(output).toContain('main');
expect(output).toContain('gemini-pro');
});
diff --git a/packages/cli/src/ui/components/Footer.tsx b/packages/cli/src/ui/components/Footer.tsx
index 47e93307a2..ea2d63de1f 100644
--- a/packages/cli/src/ui/components/Footer.tsx
+++ b/packages/cli/src/ui/components/Footer.tsx
@@ -59,32 +59,12 @@ const CwdIndicator: React.FC = ({
);
};
-interface BranchIndicatorProps {
- branchName: string;
- showParentheses?: boolean;
- color?: string;
-}
-
-const BranchIndicator: React.FC = ({
- branchName,
- showParentheses = true,
- color = theme.text.primary,
-}) => (
-
- {showParentheses ? `(${branchName}*)` : `${branchName}*`}
-
-);
-
interface SandboxIndicatorProps {
isTrustedFolder: boolean | undefined;
- terminalWidth: number;
- showDocsHint?: boolean;
}
const SandboxIndicator: React.FC = ({
isTrustedFolder,
- terminalWidth,
- showDocsHint = false,
}) => {
if (isTrustedFolder === false) {
return untrusted;
@@ -108,14 +88,7 @@ const SandboxIndicator: React.FC = ({
);
}
- return (
-
- no sandbox
- {showDocsHint && terminalWidth >= 100 && (
- (see /docs)
- )}
-
- );
+ return no sandbox;
};
const CorgiIndicator: React.FC = () => (
@@ -128,16 +101,6 @@ const CorgiIndicator: React.FC = () => (
);
-interface ErrorIndicatorProps {
- errorCount: number;
-}
-
-const ErrorIndicator: React.FC = ({ errorCount }) => (
-
-
-
-);
-
function isFooterItemId(id: string): id is FooterItemId {
return ALL_ITEMS.some((i) => i.id === id);
}
@@ -252,18 +215,11 @@ export const Footer: React.FC = () => {
}
case 'git-branch': {
if (branchName) {
- const str = `${branchName}*`;
addCol(
id,
header,
- () => (
-
- ),
- str.length,
+ () => {branchName},
+ branchName.length,
);
}
break;
@@ -279,12 +235,7 @@ export const Footer: React.FC = () => {
addCol(
id,
header,
- () => (
-
- ),
+ () => ,
str.length,
);
break;
@@ -408,7 +359,7 @@ export const Footer: React.FC = () => {
addCol(
'error-count',
'',
- () => ,
+ () => ,
12,
true,
);
diff --git a/packages/cli/src/ui/components/FooterConfigDialog.test.tsx b/packages/cli/src/ui/components/FooterConfigDialog.test.tsx
index ad7f22275c..ec04ae272e 100644
--- a/packages/cli/src/ui/components/FooterConfigDialog.test.tsx
+++ b/packages/cli/src/ui/components/FooterConfigDialog.test.tsx
@@ -135,7 +135,7 @@ describe('', () => {
});
await waitFor(() => {
- expect(lastFrame()).toContain('main*');
+ expect(lastFrame()).toContain('main');
});
});
@@ -157,7 +157,6 @@ describe('', () => {
const output = lastFrame();
expect(output).toContain('Preview:');
expect(output).not.toContain('~/project/path');
- expect(output).not.toContain('main*');
expect(output).not.toContain('docker');
expect(output).not.toContain('gemini-2.5-pro');
expect(output).not.toContain('1.2k left');
diff --git a/packages/cli/src/ui/components/FooterConfigDialog.tsx b/packages/cli/src/ui/components/FooterConfigDialog.tsx
index 8925221576..f887c8db0b 100644
--- a/packages/cli/src/ui/components/FooterConfigDialog.tsx
+++ b/packages/cli/src/ui/components/FooterConfigDialog.tsx
@@ -182,7 +182,7 @@ export const FooterConfigDialog: React.FC = ({
if (!item) return null;
return {
key: id,
- label: item.id as string,
+ label: id,
description: item.description as string,
};
})
@@ -327,7 +327,7 @@ export const FooterConfigDialog: React.FC = ({
},
'git-branch': {
header: 'Branch',
- data: main*,
+ data: main,
},
'sandbox-status': {
header: '/docs',
diff --git a/packages/cli/src/ui/components/__snapshots__/FooterConfigDialog.test.tsx.snap b/packages/cli/src/ui/components/__snapshots__/FooterConfigDialog.test.tsx.snap
index e83e193a5b..08540d68c5 100644
--- a/packages/cli/src/ui/components/__snapshots__/FooterConfigDialog.test.tsx.snap
+++ b/packages/cli/src/ui/components/__snapshots__/FooterConfigDialog.test.tsx.snap
@@ -30,7 +30,7 @@ exports[` > renders correctly with default settings 1`] =
│ ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │
│ │ Preview: │ │
│ │ Path Branch /docs /model /stats │ │
-│ │ ~/project/path main* docker gemini-2.5-pro daily 97% │ │
+│ │ ~/project/path main docker gemini-2.5-pro daily 97% │ │
│ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯"