Skip to content

fix(cli): promote stable releases to rc - #12647

Merged
marius-kilocode merged 1 commit into
mainfrom
investigate-cli-upgrade-issue
Jul 29, 2026
Merged

fix(cli): promote stable releases to rc#12647
marius-kilocode merged 1 commit into
mainfrom
investigate-cli-upgrade-issue

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

CLI installations built from the rc channel resolve upgrades through npm’s rc dist-tag. Stable publishes currently update only latest, which can leave RC users pinned to an older release even after a newer stable version is available.

Stable CLI publishes now also advance the rc alias after publishing, including idempotent workflow reruns where the package version already exists. Prerelease publishes continue to update only their own channel, so stable users remain isolated from prerelease releases.

@marius-kilocode
marius-kilocode enabled auto-merge (squash) July 29, 2026 12:17
exists: () => published(name, version),
})
}
for (const tag of NpmPublish.aliases(Script.channel)) await $`npm dist-tag add ${name}@${version} ${tag}`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

WARNING: New npm dist-tag add call has no retry/error handling, unlike the publish path it follows

NpmPublish.retry exists specifically to tolerate transient npm publish failures, but this new npm dist-tag add ${name}@${version} ${tag} call has none. If it fails transiently (network blip, registry hiccup), the whole publish() promise rejects even though the package itself published successfully, and the rc alias won't be advanced -- which is exactly the reliability problem this PR is meant to fix. Consider running this through NpmPublish.retry (or at least wrapping it so a transient dist-tag failure doesn't fail the whole release) for parity with the publish step above.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

@kilo-code-bot

kilo-code-bot Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/opencode/script/publish.ts 33 New npm dist-tag add call has no retry/error handling, unlike the publish step it follows
Files Reviewed (4 files)
  • .changeset/fresh-rc-upgrades.md
  • packages/opencode/script/kilocode/npm-publish.ts
  • packages/opencode/script/publish.ts - 1 issue
  • packages/opencode/test/kilocode/npm-publish.test.ts

Fix these issues in Kilo Cloud


Reviewed by claude-sonnet-5 · Input: 24 · Output: 8.5K · Cached: 654.3K

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit 5ad8b2f into main Jul 29, 2026
30 checks passed
@marius-kilocode
marius-kilocode deleted the investigate-cli-upgrade-issue branch July 29, 2026 12:35
unixcrh pushed a commit to unixcrh/kilocode that referenced this pull request Aug 1, 2026
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 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.

2 participants