Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sehoon38
Copy link
Collaborator

@sehoon38 sehoon38 commented Dec 9, 2025

Summary

Display quota stats for all availabel models even if they haven't been used yet in the current session

Details

The quota info from the backend returns a list of quota for all the models the users have access to. We should display quota stats for all the models even if the model has not been used in the current session.
image

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

@sehoon38 sehoon38 requested a review from a team as a code owner December 9, 2025 03:12
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @sehoon38, 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 improves the user experience of the CLI's statistics display by ensuring that all models a user has access to, and their corresponding quota information, are visible, even if those models haven't been actively engaged during the current session. This change provides a more comprehensive and transparent view of available resources.

Highlights

  • Enhanced Quota Display: The CLI's StatsDisplay component now shows quota statistics for all available Gemini models, including those that have not been used in the current session, providing a more complete overview of user access.
  • Unified Model Data Preparation: A new buildModelRows function has been introduced in StatsDisplay.tsx to consolidate data for both actively used models and models with only quota information, streamlining the rendering process for the ModelUsageTable.
  • Model Validation Utility: A VALID_GEMINI_MODELS Set has been added and exported in packages/core/src/config/models.ts to provide a centralized list of valid Gemini model identifiers, used for filtering models when displaying quota information.
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 enhances the session statistics display to show quota information for all available models, even those not used in the current session. This is achieved by introducing a new buildModelRows function that combines data from used models with available quota information. The changes are logical and address the goal of the pull request. I have one high-severity suggestion to make the model name parsing more robust to prevent potential bugs with how statistics are displayed.

@sehoon38 sehoon38 changed the title display quota stats for models that haven't been used yet in the session feat: display quota stats for unused models in session summary Dec 9, 2025
@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Size Change: +1.34 kB (+0.01%)

Total Size: 21.6 MB

Filename Size Change
./bundle/gemini.js 21.5 MB +1.34 kB (+0.01%)
ℹ️ View Unchanged
Filename Size
./bundle/sandbox-macos-permissive-closed.sb 1.03 kB
./bundle/sandbox-macos-permissive-open.sb 890 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB
./bundle/sandbox-macos-restrictive-closed.sb 3.29 kB
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB

compressed-size-action

@sehoon38 sehoon38 changed the title feat: display quota stats for unused models in session summary feat: display quota stats for unused models in /stats Dec 9, 2025
@sehoon38 sehoon38 added this pull request to the merge queue Dec 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 9, 2025
@sehoon38 sehoon38 added this pull request to the merge queue Dec 9, 2025
Merged via the queue into main with commit 2800187 Dec 9, 2025
19 of 20 checks passed
@sehoon38 sehoon38 deleted the sehoon/quota_stats branch December 9, 2025 20:22
thacio added a commit to thacio/auditaria that referenced this pull request Dec 11, 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

Development

Successfully merging this pull request may close these issues.

3 participants