fix(cli): resolve latest CLI release when GitHub latest points to non-CLI tag#12148
Merged
Merged
Conversation
… tag The GitHub releases/latest endpoint can point to non-CLI releases (e.g., jetbrains/v7.0.4), whose tag prefix doesn't match the existing version regex. Query the paginated releases endpoint, pick the first tag starting with 'v', and use that version for both display and the download URL instead of trusting releases/latest. Closes Kilo-Org#12125
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Previous Review Summary (commit 32b0e3d)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 32b0e3d)Status: 1 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (2 files)
Reviewed by gpt-5.6-sol · Input: 34.1K · Output: 5.4K · Cached: 149.2K Review guidance: REVIEW.md from base branch |
marius-kilocode
approved these changes
Jul 13, 2026
marius-kilocode
enabled auto-merge (squash)
July 13, 2026 08:16
Collaborator
|
Thanks @umi008 , applied the bot finding and merged. |
AlexOcculate
pushed a commit
to AlexOcculate/kilocode
that referenced
this pull request
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub’s repository-wide latest release can point to a JetBrains release, which leaves the CLI installer without a matching version or binary asset.
Resolve unversioned installs through the
@kilocode/clinpmlatestdist-tag, which tracks the stable CLI channel independently from prerelease channels and other product releases. Use that version in the explicit GitHub asset URL so the displayed version and downloaded archive always match.Closes #12125