Skip to content

docs(sessions): add documentation for chat recording and session management#13667

Merged
mrcabbage972 merged 1 commit intogoogle-gemini:mainfrom
Piebald-AI:add-docs-for-session-management
Nov 25, 2025
Merged

docs(sessions): add documentation for chat recording and session management#13667
mrcabbage972 merged 1 commit intogoogle-gemini:mainfrom
Piebald-AI:add-docs-for-session-management

Conversation

@bl-ue
Copy link
Copy Markdown
Contributor

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

This PR adds complete docs for the automatic saving and resuming functionality originally implemented in #4401.

Closes #13072


Note: This PR is the 8th 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 8th.

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 17:25
@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 introduces extensive documentation for the Gemini CLI's automatic chat recording and session management capabilities. It provides users with clear guidance on how conversations are automatically saved, how to effectively resume past interactions using both command-line arguments and an interactive session browser, and methods for listing and deleting old sessions. Additionally, it details configuration settings for managing session retention policies and limiting individual session lengths, ensuring users can tailor the CLI's behavior to their needs. This documentation is a crucial step in making the previously implemented features accessible and understandable.

Highlights

  • Comprehensive Documentation for Session Management: This pull request introduces extensive documentation for the Gemini CLI's automatic chat recording and session management features.
  • Interactive Session Browser: Detailed explanation of the /resume slash command, which opens an interactive session browser allowing users to search, sort, manage, and resume past conversations.
  • Command-Line Session Control: Documentation for new command-line flags including --resume (to load sessions), --list-sessions (to view available sessions), and --delete-session (to remove sessions).
  • Configurable Session Retention and Limits: Instructions on configuring sessionRetention policies (maxAge, maxCount) and maxSessionTurns to manage conversation history and individual session lengths within settings.json.
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 introduces comprehensive documentation for the new session management features, including automatic chat recording, resuming sessions, and cleanup policies. The changes include a new session-management.md page, updates to the commands.md and configuration.md pages to reflect the new /resume command and related CLI flags, and an update to the sidebar for navigation. The documentation is well-structured, clear, and provides helpful examples. The changes are excellent and I have no further feedback.

@mrcabbage972 mrcabbage972 added this pull request to the merge queue Nov 25, 2025
Merged via the queue into google-gemini:main with commit d0b6701 Nov 25, 2025
21 checks passed
@bl-ue bl-ue deleted the add-docs-for-session-management branch November 25, 2025 19:28
thacio added a commit to thacio/auditaria that referenced this pull request Nov 26, 2025
danpalmer pushed a commit to danpalmer/gemini-cli that referenced this pull request Nov 29, 2025
Copy link
Copy Markdown

@Elvedina598 Elvedina598 left a comment

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add documentation for chat recording and session management [PR 9]

3 participants