feat(ui): include session ID in the exit message's footer#20875
feat(ui): include session ID in the exit message's footer#20875
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 user experience of the CLI by modifying the exit message to include a clear, actionable command for resuming the current session. By displaying the session ID directly in the footer, users can easily pick up where they left off, improving workflow continuity. Highlights
Changelog
Activity
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
|
|
Size Change: +168 B (0%) Total Size: 25.8 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Code Review
This pull request updates the exit message to include the specific session ID, making it easier for users to resume their session. However, it introduces a potential command injection vulnerability by including the session ID in a suggested shell command without proper sanitization. If a user resumes a malicious session and copies the suggested command, it could lead to arbitrary code execution. Additionally, the hardcoded gemini command might not work for all users, depending on their CLI invocation method, potentially causing confusion. It is recommended to sanitize or properly quote the session ID and consider making the resume command suggestion more generic.
packages/cli/src/ui/components/__snapshots__/SessionSummaryDisplay.test.tsx.snap
Outdated
Show resolved
Hide resolved
|
Closing as this got addressed by #20667 |
Summary
Added session ID to the tip at the end of the exit message.
Details
Updated the summary file and the corresponding snapshot. Also sanitized the session ID before passing it into the footer to prevent command injection.
Related Issues
Closes #19379
How to Validate
Run Gemini CLI and exit it, the exit message should say the following at the bottom:
Pre-Merge Checklist