Skip to content

fix(cli): remove user email from /about command output#17650

Closed
mag123c wants to merge 2 commits intogoogle-gemini:mainfrom
mag123c:fix/16374-remove-user-email-from-about
Closed

fix(cli): remove user email from /about command output#17650
mag123c wants to merge 2 commits intogoogle-gemini:mainfrom
mag123c:fix/16374-remove-user-email-from-about

Conversation

@mag123c
Copy link
Contributor

@mag123c mag123c commented Jan 27, 2026

Summary

Remove user email (PII) from /about command output to prevent unintentional exposure when users share the output in bug reports.

Details

  • Remove userEmail field from HistoryItemAbout type.
  • Remove UserAccountManager usage in aboutCommand.ts
  • Update AboutBox component to not display email.
  • Update related tests

Related Issues

Fixes #16374

How to Validate

  1. Run npm run build
  2. Run npm start
  3. Type /about command
  4. Verify that user email is NOT displayed in the output
  5. Confirm "Auth Method" shows "Logged in with Google" (without email) for OAuth users

Pre-Merge Checklist

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

@mag123c mag123c requested a review from a team as a code owner January 27, 2026 12:35
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @mag123c, 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 focuses on enhancing user privacy by removing Personally Identifiable Information (PII), specifically the user's email address, from the /about command's output. This change ensures that sensitive user data is not inadvertently exposed when command output is shared, improving the overall security and privacy posture of the application.

Highlights

  • Privacy Enhancement: Removed the user's email address (Personally Identifiable Information - PII) from the output of the /about command to prevent its unintentional exposure, especially when users share this output in bug reports.
  • Code Refactoring: Eliminated the usage of UserAccountManager in aboutCommand.ts as it was no longer needed to retrieve user email.
  • UI Update: Modified the AboutBox component to no longer display the user's email, ensuring only 'Logged in with Google' is shown for OAuth users.
  • Type Definition Change: Updated the HistoryItemAbout type to remove the userEmail field, reflecting the removal of email data from the /about command's data structure.
  • Test Updates: Adjusted relevant test files (aboutCommand.test.ts, AboutBox.test.tsx) to align with the removal of user email handling and display.
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 aims to enhance user privacy by removing the email address from the /about command's output. The changes are logical and correctly applied across the command implementation, UI components, and their corresponding tests. My review includes one suggestion to ensure the removal of this personally identifiable information (PII) is comprehensive throughout the related type definitions.

@gemini-cli gemini-cli bot added priority/p1 Important and should be addressed in the near term. area/security Issues related to security help wanted We will accept PRs from all issues marked as "help wanted". Thanks for your support! labels Jan 27, 2026
- Remove PII (user email) from the /about command to prevent.
- unintentional exposure when users share the output in bug reports.

Fixes google-gemini#16374
@mag123c mag123c force-pushed the fix/16374-remove-user-email-from-about branch from 748d994 to c78f599 Compare January 27, 2026 12:59
@Adib234
Copy link
Contributor

Adib234 commented Jan 28, 2026

closing this because the issue is closed #16374

@Adib234 Adib234 closed this Jan 28, 2026
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 help wanted We will accept PRs from all issues marked as "help wanted". Thanks for your support! priority/p1 Important and should be addressed in the near term.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/about command includes the user's PII (email), which the bug template requests below

2 participants