Fix infinite dialog loop and add ESC key support in the /skills link command#26005
Fix infinite dialog loop and add ESC key support in the /skills link command#26005JayMeDotDot wants to merge 2 commits into
Conversation
|
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. |
Summary of ChangesHello, 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 usability issue where the confirmation dialog in the 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. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request modifies the CLI's confirmation request flow to allow resetting the UI state and introduces ESC key support for the ConsentPrompt component. The skillsCommand.ts file was updated to manually clear the confirmation request upon user action, and the CommandContext type was adjusted to support null values. Additionally, the ConsentPrompt component now includes a keypress listener to handle the ESC key as a negative confirmation, supported by a new unit test. I have no feedback to provide.
Related Issues |
- BerriAI/litellm#26577 fix(proxy): skip redundant tiktoken recount (merge-after-nits) - BerriAI/litellm#26576 fix(proxy): load REDIS_* env vars when cache_params has non-connection keys (merge-as-is) - QwenLM/qwen-code#3667 fix(cli): refresh static header on model switch (merge-after-nits) - google-gemini/gemini-cli#26005 Fix infinite dialog loop and add ESC support in /skills link (merge-after-nits)
|
Hi there! Thank you for your interest in contributing to Gemini CLI. To ensure we maintain high code quality and focus on our prioritized roadmap, we only guarantee review and consideration of pull requests for issues that are explicitly labeled as 'help wanted'. This PR will be closed in 7 days if it remains without that designation. We encourage you to find and contribute to existing 'help wanted' issues in our backlog! Thank you for your understanding. |
|
This pull request is being closed as it has been open for 14 days without a 'help wanted' designation. We encourage you to find and contribute to existing 'help wanted' issues in our backlog! Thank you for your understanding. |
Summary
When running the
gemini skills link /path/to/my-skills-repocommand, a confirmation dialog appears to request user consent. However, after the user selects "Yes" or "No," the dialog would not disappear, blocking further interaction.And I found the dialog shows it supports ESC to exit, but it didn't work.
Fixed an infinite dialog loop in the
/skills linkcommand and added ESC key support to theConsentPromptcomponent.Details
CommandUIContextto allowsetConfirmationRequest(null).skillsCommand.tsto clear the confirmation request state after the user responds.useKeypresshandling toConsentPrompt.tsxto handle the ESC key, which now triggers a cancellation (onConfirm(false)).DialogFooterinConsentPromptto include "Esc cancel" hint.ConsentPrompt.test.tsxto userenderWithProvidersfor proper context and added a test case for ESC key handling.Related Issues
N/A
How to Validate
npm run start./skills link <any_path>.Escand verify the dialog disappears and focus returns to the input.npm test --workspace @google/gemini-cli --src/ui/components/ConsentPrompt.test.tsx.Pre-Merge Checklist