Skip to content

Fix : Add Privacy-tos.md to docs#20424

Open
pratim994 wants to merge 1 commit intogoogle-gemini:mainfrom
pratim994:fix/privacy-doc
Open

Fix : Add Privacy-tos.md to docs#20424
pratim994 wants to merge 1 commit intogoogle-gemini:mainfrom
pratim994:fix/privacy-doc

Conversation

@pratim994
Copy link

Summary

Adding Privacy-tos.md to docs , which was missing during authentication.

Details

During gemini-cli authentication there was a URL to privacy terms of service , which when clicked gave empty response .
While looking through docs , I found out that it lacked said md file, in this PR I am adding that file.

Related Issues

Related to #20400

How to Validate

Pre-Merge Checklist

  • [ x] 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
    • [x ] Linux
      • [ x] npm run
      • [ x] npx
      • Docker

@pratim994 pratim994 requested review from a team as code owners February 26, 2026 12:03
@google-cla
Copy link

google-cla bot commented Feb 26, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @pratim994, 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 addresses a critical documentation gap by introducing the Privacy-tos.md file. This file contains essential information regarding the Gemini CLI's license, terms of service, and privacy notices, ensuring that users can access this information directly during the authentication process, thereby improving the overall user experience and compliance.

Highlights

  • Documentation Enhancement: Added the Privacy-tos.md file to the documentation, which was previously missing and caused broken links during Gemini CLI authentication.
  • Improved User Experience: Resolved an issue where clicking on the privacy terms of service URL during authentication resulted in an empty response, by providing the necessary documentation.
Changelog
  • docs/Privacy-tos.md
    • Added a new Markdown file detailing the Gemini CLI's license, terms of service, and privacy notices.
Activity
  • The author identified a missing documentation file that caused a broken link during Gemini CLI authentication.
  • A new Privacy-tos.md file was created and added to the docs directory.
  • The pull request includes details on supported authentication methods and applicable terms for each.
  • The author confirmed that relevant documentation was updated.
  • The changes were validated on Linux using npm run and npx.
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
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 new documentation file, Privacy-tos.md, to address a broken link for privacy and terms of service. While adding the documentation is the right approach, there are a couple of issues. The new file appears to be in the wrong directory and has a name that doesn't align with the documentation site's configuration, which will likely prevent it from fixing the issue it's intended to solve. Additionally, there's a duplicated URL for two different legal documents within the file. I've added comments with details on how to resolve these issues.

@@ -0,0 +1,96 @@
# Gemini CLI: License, Terms of Service, and Privacy Notices
Copy link
Contributor

Choose a reason for hiding this comment

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

high

This file appears to be in the wrong location and might have the wrong name. The docs/sidebar.json file has an entry for 'Terms and privacy' with the slug docs/resources/tos-privacy, which corresponds to a file at docs/resources/tos-privacy.md. To ensure the documentation site builds correctly and the broken link is fixed, please move this file to docs/resources/ and rename it to tos-privacy.md.


| Authentication Method | Service(s) | Terms of Service | Privacy Notice |
| :----------------------- | :--------------------------- | :------------------------------------------------------------------------------------------------------ | :-------------------------------------------------------------------------------------------- |
| Google Account | Gemini Code Assist services | [Terms of Service](https://developers.google.com/gemini-code-assist/resources/privacy-notices) | [Privacy Notices](https://developers.google.com/gemini-code-assist/resources/privacy-notices) |
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The URL for 'Terms of Service' and 'Privacy Notices' is the same in this table row. This is likely an error. Please verify and update the 'Terms of Service' link with the correct URL. It's important for legal documents to have accurate links.

@gemini-cli gemini-cli bot added the area/security Issues related to security label Feb 26, 2026
@skeshive
Copy link
Contributor

Can you update the link to point to https://github.com/google-gemini/gemini-cli/blob/main/docs/resources/tos-privacy.md instead? We recently changed the directory

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

Labels

area/security Issues related to security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants