Skip to content

Add support for linking in the extension registry#23153

Merged
chrstnb merged 7 commits intogoogle-gemini:mainfrom
kevinjwang1:supportLinkingInRegistry
Mar 20, 2026
Merged

Add support for linking in the extension registry#23153
chrstnb merged 7 commits intogoogle-gemini:mainfrom
kevinjwang1:supportLinkingInRegistry

Conversation

@kevinjwang1
Copy link
Contributor

Summary

The in-cli extension registry will now support linking if the source URI is from a filepath. The UI has been updated to give the user the choice between "Enter" for installing and "L" for linking.

Details

Added tests for linking logic.

Related Issues

Fixes #23152

@kevinjwang1 kevinjwang1 requested a review from a team as a code owner March 19, 2026 20:38
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, 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 enhances the CLI's extension management capabilities by introducing support for linking extensions directly from local file paths. This feature is particularly useful for developers who want to test or use local versions of extensions without needing to publish them. The changes involve updates to the command handling, UI components, and underlying logic to facilitate this new linking mechanism, ensuring a smooth user experience and proper consent management.

Highlights

  • Extension Linking Support: Implemented the ability to 'link' extensions from local filepaths within the in-cli extension registry, providing an alternative to traditional installation for development or local use cases.
  • User Interface Update: Modified the extension details view to present users with a choice between 'Enter' for installing and 'L' for linking, specifically when an extension is linkable (i.e., its source is a local filepath).
  • Consent Override Propagation: Updated the linkAction and related UI components to correctly handle and propagate requestConsentOverride for linking operations, ensuring consistent consent handling with installation.
  • New Linking Tests: Added comprehensive unit tests for the ExtensionDetails component to verify the new linking logic, including keypress handling for 'l' and conditional rendering of the 'Link' button based on the extension's URL type.
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.

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

The pull request successfully adds support for linking local extensions within the CLI's extension registry. The changes are well-implemented, including updates to the UI components (ExtensionDetails, ExtensionRegistryView), the command action (linkAction), and corresponding test cases. The logic for determining linkable extensions and handling user consent is correctly integrated. Overall, the changes are clean and effectively deliver the new functionality.

@gemini-cli gemini-cli bot added the area/extensions Issues related to Gemini CLI extensions capability label Mar 19, 2026
@chrstnb chrstnb added this pull request to the merge queue Mar 20, 2026
Merged via the queue into google-gemini:main with commit 7a65c1e Mar 20, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/extensions Issues related to Gemini CLI extensions capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support linking local extensions in the in-cli registry

2 participants