feat(cli): add gemini --resume hint on exit#16285
feat(cli): add gemini --resume hint on exit#16285jackwotherspoon merged 8 commits intogoogle-gemini:mainfrom
Conversation
Summary of ChangesHello @Mag1ck, 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 user experience of the Gemini CLI by providing a clear and actionable instruction to users upon exiting a session. It addresses a specific user need by displaying a command to resume their work, making the CLI more intuitive and user-friendly. 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. 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
|
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
|
Yes that was intentional. |
|
I am sorry, but more changes are needed for this small feature - please take a look at #17481 |
|
@afarber why do you propose the We just need to show the tip and message...? |
|
@Mag1ck Can you move the tip into the box, i think it makes sense for everything to be in the box. Just have it at the end with |
|
|
To avoid showing the resume hint when there's nothing to resume (user quits immediately without any prompts). |
That is a fair point. Couple options I see: a) We could make the resume tip more generic. @jacob314 do you have any preference here? I would probably lean option a) |
@afarber that sounds like a bug, the session browser should not show empty sessions. Want to file a bug for that? |
|
@jackwotherspoon sorry, I do not see that issue anymore. Deleted the misleading comment |
Sure I will move it into the box no problem. I will make this fix tomorrow Also @afarber is right here In my opinion but generic tip is also an option |
|
@jackwotherspoon I've added footer into the box, and updated branch |
|
Thank you Sir 🙏 |
|
Thanks for the patience here @Mag1ck Sorry this took so long! |



Summary
This PR adds a helpful hint to the exit summary screen, informing users how to resume their session after leaving according to jacob comment here:
#16226
I'm not sure about padding tho
Details
Modified SessionSummaryDisplay.tsx to include a new message below the standard "Agent powering down" text, packed new and old message into box component.
Related Issues
Fixes #16226
How to Validate
Build and start the CLI: npm run build -> npm run start
Exit the session by typing /quit or pressing Ctrl+C twice.
Expected Result: The exit summary should display the following message at the bottom:
Resume this session by running gemini --resume
Pre-Merge Checklist