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
This commit is contained in:
Taylor Mullen
2026-04-20 20:35:43 -07:00
parent a38e2f0048
commit f578c375d0
3 changed files with 73 additions and 2 deletions
+7
View File
@@ -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',
];