refactor common settings logic for skills,agents#17490
refactor common settings logic for skills,agents#17490scidomino merged 6 commits intogoogle-gemini:mainfrom
Conversation
Summary of ChangesHello @ishaanxgupta, 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 significantly refactors the internal logic for managing the enabled/disabled states of agents and skills. By introducing a new 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.
Code Review
This pull request centralizes the logic for enabling and disabling skills and agents into a new featureToggleUtils.ts utility, significantly reducing code duplication and improving maintainability. However, functions in agentSettings.ts and skillSettings.ts that wrap the new utility produce objects with an incorrect shape, violating their declared types.
|
@sehoon38 please have a look, there are no test files for these 2 files, should I implement them in another PR or should I do them in this itself? |
|
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! |
|
@sehoon38 @scidomino could you please reopen this one, it previously got closed due to lack of help wanted label |
|
This PR is a solid refactoring that improves code structure by creating a reusable utility for toggling features. This is a definite improvement for maintainability. The most critical issue is the lack of tests for the new, shared logic. The existing tests for the Before this PR is merged, I recommend adding unit tests for the new and refactored files. Here are my specific recommendations:
Adding these tests will ensure that this refactoring is safe and that the logic is correct. |
|
@scidomino added test and ran them on local all tests are passing and preflight also checked |
@scidomino Uhh is there any mistake on my side for this one |
|
Three test are failing in e2e one timedout one is flaky ig and one failed legit but i dont think that has anything to do with the refactor which this PR does🤔 |
|
tests look good! |
Co-authored-by: ved015 <vedant.04.mahajan@gmail.com> Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
Co-authored-by: ved015 <vedant.04.mahajan@gmail.com> Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
Co-authored-by: ved015 <vedant.04.mahajan@gmail.com> Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
Co-authored-by: ved015 <vedant.04.mahajan@gmail.com> Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>

Related Issues
closes #17348
Pre-Merge Checklist