gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Extension update detection incorrectly compares versions for local extensions

Open seeun0210 opened this issue 1 year ago • 2 comments

What happened?

The extension update detection logic was incorrectly comparing the source repository version with the extension's metadata version instead of the actually installed version. This caused:

  1. False positive updates: Extensions showing as "update available" when they were already up to date
  2. Unnecessary update attempts: Users being prompted to update extensions that didn't need updates
  3. Inconsistent behavior: Local extensions behaving differently from expected update detection logic

The issue was particularly noticeable with local extensions where the version comparison logic was flawed.

What did you expect to happen?

Extension update detection should:

  1. Accurately compare versions: Compare the source repository version with the actually installed extension version
  2. Only show updates when needed: Only prompt for updates when there's actually a newer version available
  3. Consistent behavior: Local extensions should follow the same update detection logic as other extensions
  4. Reliable state management: Extension update states should reflect the actual update availability

Expected flow:

  • Check source repository for latest version
  • Load the actually installed extension to get its current version
  • Compare source version vs installed version
  • Only mark as "UPDATE_AVAILABLE" if source version > installed version

Client information

Platform: macOS (Darwin 24.5.0)

Client Information:

> /about
# This would be filled in when actually creating the issue
# The user would run the actual /about command and paste the output

### **Login information**
```markdown
Google Account authentication

Login information

No response

Anything else we need to know?

No response

seeun0210 avatar Sep 27 '25 04:09 seeun0210

Thanks for spotting this. We are not reviewing external PRs for the next week or two as we attempt to shore up the product for a big release.

scidomino avatar Sep 30 '25 23:09 scidomino

Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.

It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.

Thank you for your contribution!

gemini-cli[bot] avatar Dec 28 '25 00:12 gemini-cli[bot]