Extension update detection incorrectly compares versions for local extensions
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:
- False positive updates: Extensions showing as "update available" when they were already up to date
- Unnecessary update attempts: Users being prompted to update extensions that didn't need updates
- 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:
- Accurately compare versions: Compare the source repository version with the actually installed extension version
- Only show updates when needed: Only prompt for updates when there's actually a newer version available
- Consistent behavior: Local extensions should follow the same update detection logic as other extensions
- 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
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.
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!