Skip to content

feat(sessions): add /resume slash command to open the session browser#13621

Merged
mrcabbage972 merged 5 commits intogoogle-gemini:mainfrom
Piebald-AI:add-resume-slash-command-to-open-session-browser
Nov 25, 2025
Merged

feat(sessions): add /resume slash command to open the session browser#13621
mrcabbage972 merged 5 commits intogoogle-gemini:mainfrom
Piebald-AI:add-resume-slash-command-to-open-session-browser

Conversation

@bl-ue
Copy link
Copy Markdown
Contributor

@bl-ue bl-ue commented Nov 22, 2025

This PR adds the /resume slash command to open the session browser that was added in #13351. This finishes the automatic saving and resuming functionality originally implemented in #4401.

Closes #13069
Closes #13070
Closes #13071


Note: This PR is the 7th in a series of PRs that implement automatic chat recording and resuming in both interactive and non-interactive modes, with command line flags for non-interactive resuming and session management, and an interactive session browser.

PR #4401 was the original monolithic PR, which implemented this feature from the ground up. It's too large to merge as-is, however, and so it was broken up into several smaller PRs, of which this PR is the 7th.

Please see #4401's description for the full context of this PR. The original monolithic PR's description contains a detailed analysis of the entire system, with an example of the recording JSON and a demo video.

@bl-ue bl-ue requested a review from a team as a code owner November 22, 2025 00:40
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @bl-ue, 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 finalizes the automatic chat saving and resuming feature by introducing the /resume slash command. This command provides users with an interactive way to access and manage their saved chat sessions through the session browser, enhancing the overall user experience for session management within the CLI.

Highlights

  • New /resume Slash Command: Introduces a new /resume command that allows users to browse and resume previously saved chat sessions.
  • Session Browser Integration: The /resume command directly opens the existing session browser UI, providing a seamless way to manage sessions.
  • Completion of Auto-Saving Feature: This PR marks the completion of the automatic chat saving and resuming functionality, building upon previous work.
  • UI State and Action Updates: Integrates session browser state (isSessionBrowserOpen) and actions (openSessionBrowser, closeSessionBrowser, handleResumeSession, handleDeleteSession) into the main application container and UI contexts.
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 successfully adds the /resume slash command, which opens the session browser, completing a major piece of the session management functionality. The changes are well-integrated across the command loading, UI state, and component layers.

I've found one high-severity issue related to error handling. The new asynchronous handleDeleteSession action can lead to unhandled promise rejections in the SessionBrowser component because the returned promise is not handled. My review comment provides details on how to fix this to ensure errors during session deletion are caught and displayed to the user correctly.

Comment thread packages/cli/src/ui/contexts/UIActionsContext.tsx
@bl-ue
Copy link
Copy Markdown
Contributor Author

bl-ue commented Nov 22, 2025

/gemini review

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 introduces the /resume slash command, which opens a session browser for resuming past conversations. The implementation is well-structured, adding the new command, integrating it into the UI through a DialogManager, and providing the necessary state and action management in AppContainer. The changes also include several important bug fixes, such as correcting the u/d key handling in the session browser and using the correct identifier for session deletion. The test files have been updated accordingly to reflect these changes. Overall, the changes are of high quality and complete the intended feature. I have not found any high or critical severity issues.

@mrcabbage972 mrcabbage972 added this pull request to the merge queue Nov 25, 2025
Merged via the queue into google-gemini:main with commit 94c3eec Nov 25, 2025
21 checks passed
@bl-ue bl-ue deleted the add-resume-slash-command-to-open-session-browser branch November 25, 2025 19:28
thacio added a commit to thacio/auditaria that referenced this pull request Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants