Skip to content

Feat: Add Machine Hostname to CLI interface#25637

Open
M-DEV-1 wants to merge 4 commits intogoogle-gemini:mainfrom
M-DEV-1:M-DEV-1/machine-hostname
Open

Feat: Add Machine Hostname to CLI interface#25637
M-DEV-1 wants to merge 4 commits intogoogle-gemini:mainfrom
M-DEV-1:M-DEV-1/machine-hostname

Conversation

@M-DEV-1
Copy link
Copy Markdown

@M-DEV-1 M-DEV-1 commented Apr 18, 2026

Summary

Users can now update their footer to view their machine hostnames from the footer selection menu.

Screenshots

Footer

image

Footer Menu (Preview Pane)

image

Related Issues

Fixes #25571

Pre-Merge Checklist

  • Updated relevant documentation and README (if needed)
  • Added/updated tests (if needed)
  • Noted breaking changes (if any)
  • Validated on required platforms/methods:
    • MacOS
      • npm run
      • npx
      • Docker
      • Podman
      • Seatbelt
    • Windows
      • npm run
      • npx
      • Docker
    • Linux
      • npm run
      • npx
      • Docker

M-DEV-1 added 2 commits April 19, 2026 02:29
Signed-off-by: M-DEV-1 <mahadevankizhakkedathu@gmail.com>
Signed-off-by: M-DEV-1 <mahadevankizhakkedathu@gmail.com>
@M-DEV-1 M-DEV-1 requested a review from a team as a code owner April 18, 2026 21:04
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces the ability for users to display their machine's hostname within the CLI footer interface. By integrating the system's hostname into the existing footer selection menu, users gain better visibility into their current environment directly from the command line.

Highlights

  • Hostname Integration: Added the machine hostname as a new selectable item in the CLI footer configuration.
  • UI Component Update: Updated the Footer component to retrieve and display the system hostname using the Node.js os module.
  • Test Coverage: Updated the footer items test suite to include the new hostname configuration.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a 'hostname' item to the CLI footer, updating the configuration, tests, and the Footer component. The review feedback suggests optimizing performance by moving the os.hostname() call to a module-level constant to avoid redundant system calls during component re-renders.

Comment thread packages/cli/src/ui/components/Footer.tsx
Comment thread packages/cli/src/ui/components/Footer.tsx
@gemini-cli gemini-cli bot added area/core Issues related to User Interface, OS Support, Core Functionality help wanted We will accept PRs from all issues marked as "help wanted". Thanks for your support! labels Apr 18, 2026
M-DEV-1 added 2 commits April 19, 2026 02:48
Signed-off-by: M-DEV-1 <mahadevankizhakkedathu@gmail.com>
Signed-off-by: M-DEV-1 <mahadevankizhakkedathu@gmail.com>
@M-DEV-1
Copy link
Copy Markdown
Author

M-DEV-1 commented Apr 20, 2026

Hi @themactep @Adib234 👋🏼

Hope you have a great weekend. Was wondering if I could get some reviews on the PR whenever time permits :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core Issues related to User Interface, OS Support, Core Functionality help wanted We will accept PRs from all issues marked as "help wanted". Thanks for your support!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add machine hostname to CLI interface

1 participant