From f578c375d072d55632175115c28abd3da51abb4c Mon Sep 17 00:00:00 2001 From: Taylor Mullen Date: Mon, 20 Apr 2026 20:35:43 -0700 Subject: [PATCH] feat(cli): add hostname to footer with smart visibility - Add hostname to footer ALL_ITEMS and DEFAULT_ORDER - Implement smart visibility for hostname (only show when remote/container) - Shorten hostname to first segment to save space - Fix vimEnabled destructuring in Footer.tsx Fixes https://github.com/google-gemini/gemini-cli/issues/25661 --- packages/cli/src/config/footerItems.ts | 7 ++++ .../cli/src/ui/components/Footer.test.tsx | 41 +++++++++++++++++++ packages/cli/src/ui/components/Footer.tsx | 27 +++++++++++- 3 files changed, 73 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/config/footerItems.ts b/packages/cli/src/config/footerItems.ts index 612418a48f..4688a3fe23 100644 --- a/packages/cli/src/config/footerItems.ts +++ b/packages/cli/src/config/footerItems.ts @@ -22,6 +22,11 @@ export const ALL_ITEMS = [ header: 'sandbox', description: 'Sandbox type and trust indicator', }, + { + id: 'hostname', + header: 'host', + description: 'System hostname (only shown when remote or in a container)', + }, { id: 'model-name', header: '/model', @@ -70,6 +75,7 @@ export const DEFAULT_ORDER = [ 'workspace', 'git-branch', 'sandbox', + 'hostname', 'model-name', 'context-used', 'quota', @@ -87,6 +93,7 @@ export function deriveItemsFromLegacySettings( 'workspace', 'git-branch', 'sandbox', + 'hostname', 'model-name', 'quota', ]; diff --git a/packages/cli/src/ui/components/Footer.test.tsx b/packages/cli/src/ui/components/Footer.test.tsx index ab242928aa..eac7cb86bd 100644 --- a/packages/cli/src/ui/components/Footer.test.tsx +++ b/packages/cli/src/ui/components/Footer.test.tsx @@ -861,6 +861,47 @@ describe('