-
Notifications
You must be signed in to change notification settings - Fork 10.9k
fix: loadcodeassist eligible tiers getting ignored for unlicensed users (regression) #17581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: loadcodeassist eligible tiers getting ignored for unlicensed users (regression) #17581
Conversation
Summary of ChangesHello @gsquared94, 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 regression that caused the system to incorrectly block unlicensed users from accessing code assist features if any tier was marked as ineligible, even if other eligible tiers were available. The fix reintroduces the correct behavior by ensuring that the presence of Highlights
Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this 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 addresses a regression where eligible tiers for code assist were incorrectly ignored for unlicensed users when other tiers were marked as ineligible. The change in packages/core/src/code_assist/setup.ts correctly modifies the validation logic to allow the process to continue if there are allowedTiers, even if ineligibleTiers are also present. The accompanying tests in packages/core/src/code_assist/setup.test.ts are thorough, covering the primary success case, edge cases like empty or undefined allowedTiers, and ensuring that VALIDATION_REQUIRED errors maintain precedence. The fix is sound and the test coverage is excellent. I have not found any issues of high or critical severity.
125c8ea to
77edb58
Compare
77edb58 to
3d6464f
Compare
3d6464f to
8d962d9
Compare
8d962d9 to
73b78c1
Compare
|
Hi there! Thank you for your contribution to Gemini CLI. We really appreciate the time and effort you've put into this pull request. To keep our backlog manageable and ensure we're focusing on current priorities, we are closing pull requests that haven't seen maintainer activity for 30 days. Currently, the team is prioritizing work associated with 🔒 maintainer only or help wanted issues. If you believe this change is still critical, please feel free to comment with updated details. Otherwise, we encourage contributors to focus on open issues labeled as help wanted. Thank you for your understanding! |
Incorrect refactoring in #17357 causes ignoring
eligibletier when some other tier isineligiblewhich is a regression from current behavior.Fixes #17582