Skip to content

fix(cli): point curl upgrade at the install script#11601

Open
marius-kilocode wants to merge 1 commit into
mainfrom
fix/curl-upgrade-install-url
Open

fix(cli): point curl upgrade at the install script#11601
marius-kilocode wants to merge 1 commit into
mainfrom
fix/curl-upgrade-install-url

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

Problem

kilo upgrade (and the TUI's silent auto-upgrade) is broken for anyone who installed the CLI via the curl script. The binary is never replaced, so the version stays pinned to whatever was previously installed and users have to fall back to npm install -g @kilocode/cli to move forward.

The curl upgrade path fetches an install URL and pipes the response body straight into bash with VERSION=<target>. The URL it uses, https://kilo.ai/install, is the marketing landing page (a ~200KB HTML document), not a shell script. Piping HTML into bash does nothing useful, so the upgrade silently no-ops.

This was introduced in #11264, which replaced the upstream https://opencode.ai/install script URL with https://kilo.ai/install. The other package managers (npm, brew, scoop, choco) use separate code paths and were unaffected, which is why npm upgrades kept working.

Fix

Point the curl install URL at https://kilo.ai/cli/install, which is the actual installer script (the cloud app redirects /cli/install to the GitHub install script). That script downloads the kilo binary into ~/.kilo/bin and already honors the VERSION env var the upgrade flow passes.

Only the curl path is affected; the npm/brew/scoop/choco branches are unchanged.

Note: this repairs upgrades going forward. A CLI already stuck on the broken state still needs one manual bootstrap (via npm or curl -fsSL https://kilo.ai/cli/install | bash), since the broken binary is the one running the upgrade.

The curl upgrade path fetched https://kilo.ai/install (the marketing
landing page) and piped HTML into bash, so curl-installed CLIs never
upgraded. Point it at https://kilo.ai/cli/install, the actual installer.
@kilo-code-bot

kilo-code-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (4 files)
  • .changeset/fix-curl-upgrade-url.md
  • packages/kilo-docs/source-links.md
  • packages/opencode/src/kilocode/installation/index.ts
  • packages/opencode/test/kilocode/installation/upgrade.test.ts

Reviewed by gpt-5.4-20260305 · Input: 107.5K · Output: 5.1K · Cached: 373.8K

Review guidance: REVIEW.md from base branch main

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