feat(cli): add hostname to footer status bar#25663
feat(cli): add hostname to footer status bar#25663AdityaSharma-Git3207 wants to merge 2 commits intogoogle-gemini:mainfrom
Conversation
Summary of ChangesHello, 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 enhances the Gemini CLI user experience by displaying the current system hostname in the persistent bottom status bar. This addition provides better visibility for users managing multiple CLI sessions across various remote or containerized environments, ensuring consistent layout behavior while maintaining backward compatibility with existing settings. Highlights
Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this comment.
Code Review
This pull request introduces a 'hostname' display item to the CLI footer, updating the configuration in footerItems.ts and the rendering logic in Footer.tsx. The review feedback highlights a performance improvement opportunity: the system hostname should be retrieved outside the render loop or memoized to avoid redundant system calls during the frequent re-renders of the Footer component.
Summary
Adds the current system hostname to the persistent bottom status border.
This helps users quickly distinguish between multiple Gemini CLI sessions running across SSH hosts, virtual machines, containers, or remote systems.
Details
This change adds a new footer item:
hostname.hostnameto available footer itemsos.hostname()The hostname uses the existing footer column layout, so current overflow and spacing behavior remain unchanged.
Related Issues
Closes #25661
How to Validate
hostfield is shown.Pre-Merge Checklist