Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/cli/src/config/footerItems.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ describe('footerItems', () => {
'quota',
'memory-usage',
'session-id',
'hostname',
'code-changes',
'token-count',
]);
Expand Down
6 changes: 6 additions & 0 deletions packages/cli/src/config/footerItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ export const ALL_ITEMS = [
header: 'session',
description: 'Unique identifier for the current session',
},
{
id: 'hostname',
header: 'machine',
description: 'Current machine hostname',
},
{
id: 'auth',
header: '/auth',
Expand Down Expand Up @@ -75,6 +80,7 @@ export const DEFAULT_ORDER = [
'quota',
'memory-usage',
'session-id',
'hostname',
'auth',
'code-changes',
'token-count',
Expand Down
11 changes: 11 additions & 0 deletions packages/cli/src/ui/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
} from '@google/gemini-cli-core';
import { ConsoleSummaryDisplay } from './ConsoleSummaryDisplay.js';
import process from 'node:process';
import os from 'node:os';
Comment thread
M-DEV-1 marked this conversation as resolved.
Resolved
import { MemoryUsageDisplay } from './MemoryUsageDisplay.js';
import { ContextUsageDisplay } from './ContextUsageDisplay.js';
import { QuotaDisplay } from './QuotaDisplay.js';
Expand Down Expand Up @@ -386,6 +387,16 @@ export const Footer: React.FC = () => {
);
break;
}
case 'hostname': {
const hostname = os.hostname();
addCol(
id,
header,
() => <Text color={itemColor}>{hostname}</Text>,
hostname.length,
);
break;
}
Comment thread
M-DEV-1 marked this conversation as resolved.
Resolved
case 'auth': {
if (!settings.merged.ui.showUserIdentity) break;
if (!authType) break;
Expand Down