Skip to content

feat(cli): add chat resume footer on session quit#20667

Merged
devr0306 merged 3 commits intogoogle-gemini:mainfrom
lordshashank:feat/chat-resume-footer
Mar 3, 2026
Merged

feat(cli): add chat resume footer on session quit#20667
devr0306 merged 3 commits intogoogle-gemini:mainfrom
lordshashank:feat/chat-resume-footer

Conversation

@lordshashank
Copy link
Copy Markdown
Contributor

Summary

Adds a footer to session stats displaying
Resume this session with: gemini --resume <uuid>

Details

I was frustrated by having to resume sessions as have been used to it and sometime rage quit a session and its high friction to open them with multiple searches, etc. I also generally save long running sessions for future reference, this would save me time in locating the uuid.

Related Issues

resolves #19379

How to Validate

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

@lordshashank lordshashank requested a review from a team as a code owner February 28, 2026 07:25
@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 enhances the command-line interface by introducing a convenient mechanism for users to quickly resume their chat sessions. Upon exiting a session, the system now displays a clear, actionable command with the session's unique identifier, streamlining the workflow for continuing previous interactions.

Highlights

  • Feature: Chat Resume Footer: Implemented a new footer in the session summary display that provides the exact command to resume the current session, including its unique ID.
  • Improved User Experience: The change aims to reduce friction for users who frequently resume CLI sessions by making the resume command readily available upon session termination.
Changelog
  • packages/cli/src/ui/components/SessionSummaryDisplay.tsx
    • Imported useSessionStats to access session-specific data.
    • Refactored the component from a direct functional component to one that uses a block body to incorporate logic.
    • Dynamically constructed the footer message to include the gemini --resume <uuid> command using the session's ID.
Activity
  • The author has updated relevant documentation and README.
  • The author has added/updated tests.
  • The author has validated the changes on MacOS using npm run.
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.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

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 helpful feature to display the command for resuming a session upon exit. The implementation is straightforward, but it introduces a hardcoded command name gemini which may not be correct for all users depending on how they run the CLI. The comment suggests making the message more robust to ensure it works for all users, and this feedback has been retained as it does not contradict any existing rules.

@gemini-cli gemini-cli bot added area/core Issues related to User Interface, OS Support, Core Functionality 🔒 maintainer only ⛔ Do not contribute. Internal roadmap item. labels Feb 28, 2026
Copy link
Copy Markdown
Contributor

@devr0306 devr0306 left a comment

Choose a reason for hiding this comment

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

LGTM

@devr0306 devr0306 added this pull request to the merge queue Mar 3, 2026
Merged via the queue into google-gemini:main with commit df14a6c Mar 3, 2026
27 checks passed
BryanBradfo pushed a commit to BryanBradfo/gemini-cli that referenced this pull request Mar 5, 2026
Co-authored-by: Dev Randalpura <devrandalpura@google.com>
struckoff pushed a commit to struckoff/gemini-cli that referenced this pull request Mar 6, 2026
Co-authored-by: Dev Randalpura <devrandalpura@google.com>
liamhelmer pushed a commit to badal-io/gemini-cli that referenced this pull request Mar 12, 2026
Co-authored-by: Dev Randalpura <devrandalpura@google.com>
yashodipmore pushed a commit to yashodipmore/geemi-cli that referenced this pull request Mar 21, 2026
Co-authored-by: Dev Randalpura <devrandalpura@google.com>
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 🔒 maintainer only ⛔ Do not contribute. Internal roadmap item.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On exit show a message explaining to users exactly how to resume their session

2 participants