Skip to content

fix(core): use CLI version in IDE client connections#21582

Closed
Gyanranjan-Priyam wants to merge 1 commit intogoogle-gemini:mainfrom
Gyanranjan-Priyam:fix/3487-use-cli-version-in-ide-client
Closed

fix(core): use CLI version in IDE client connections#21582
Gyanranjan-Priyam wants to merge 1 commit intogoogle-gemini:mainfrom
Gyanranjan-Priyam:fix/3487-use-cli-version-in-ide-client

Conversation

@Gyanranjan-Priyam
Copy link
Copy Markdown
Contributor

@Gyanranjan-Priyam Gyanranjan-Priyam commented Mar 7, 2026

Summary

Fixes #3487

Uses the actual CLI version instead of hardcoded '1.0.0' in IDE client connections.

Changes

  • Import getVersion() from ../utils/version.js
  • Replace hardcoded version in establishHttpConnection()
  • Replace hardcoded version in establishStdioConnection()

Testing

  • Changes compile without errors
  • Ran npm run preflight

Resolves google-gemini#3487

- Import getVersion from utils/version.js
- Replace hardcoded '1.0.0' with actual CLI version in HTTP connection
- Replace hardcoded '1.0.0' with actual CLI version in stdio connection
@Gyanranjan-Priyam Gyanranjan-Priyam requested a review from a team as a code owner March 7, 2026 18:15
@google-cla
Copy link
Copy Markdown

google-cla Bot commented Mar 7, 2026

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.

@gemini-code-assist
Copy link
Copy Markdown
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 addresses an issue where IDE client connections were using a static, hardcoded version number instead of the actual CLI version. By integrating a dynamic version retrieval mechanism, the change ensures that all IDE client connections accurately report their current CLI version, improving consistency and providing more accurate diagnostic information.

Highlights

  • Import getVersion() utility: The getVersion() utility function was imported from ../utils/version.js to enable dynamic retrieval of the CLI version.
  • Update HTTP Client Connection: The hardcoded version '1.0.0' was replaced with the dynamically retrieved CLI version in the establishHttpConnection() method for the HTTP client.
  • Update Stdio Client Connection: The hardcoded version '1.0.0' was replaced with the dynamically retrieved CLI version in the establishStdioConnection() method for the Stdio client.
Changelog
  • packages/core/src/ide/ide-client.ts
    • Imported the getVersion utility function.
    • Updated the HTTP client connection to use the dynamic CLI version.
    • Updated the Stdio client connection to use the dynamic CLI version.
Activity
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
Copy Markdown
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 correctly replaces a hardcoded version string '1.0.0' with a dynamic version lookup using getVersion() when establishing IDE client connections. The changes are applied to both HTTP and stdio connection methods. The implementation is straightforward and effectively ensures that the actual CLI version is reported to the IDE companion, fixing the described issue.

Copy link
Copy Markdown
Contributor Author

@Gyanranjan-Priyam Gyanranjan-Priyam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have successfully checked every things.

@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli Bot commented Mar 22, 2026

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 have updated our contribution policy (see Discussion #17383).

We only guarantee review and consideration of pull requests for issues that are explicitly labeled as 'help wanted'. All other community pull requests are subject to closure after 14 days if they do not align with our current focus areas. For this reason, we strongly recommend that contributors only submit pull requests against issues explicitly labeled as 'help-wanted'.

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 and for being part of our community!

@gemini-cli gemini-cli Bot closed this Mar 22, 2026
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.

1 participant