Skip to content

fix(cli): install the latest CLI when the requested release does not exist - #10180

Merged
Kitenite merged 1 commit into
mainfrom
fix/cli-install-missing-release-fallback
Nov 23, 2026
Merged

Kitenite merged 1 commit into
mainfrom
fix/cli-install-missing-release-fallback

Conversation

@Kitenite

@Kitenite Kitenite commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Problem

hosts add (Set up over SSH) asks the installer for the CLI release that matches the local CLI version. Desktop 2.0.3, 2.0.6 and 2.0.7 have no cli-v release (those Release CLI runs were cancelled), so setup from those versions stops on a 404.

Change

When the requested release has no tarball, install.sh warns and installs cli-latest. A failure on cli-latest still stops with an error. Released desktop builds fetch this script from the marketing site, so they get the fix without an update.

Tested

  • linux-x64 (Ubuntu 22.04 container): cli-v2.0.6 falls back and installs 2.0.11; cli-v2.0.11 and latest install as before.
  • darwin-arm64: cli-v2.0.6 falls back and installs 2.0.11.

Summary by cubic

Fixes hosts add (Set up over SSH) failing with a 404 for desktop versions that have no matching CLI release. Desktop 2.0.3, 2.0.6, and 2.0.7 have no cli-v release. The installer now warns and falls back to installing cli-latest; a failure on cli-latest still stops with an error. Released desktop builds fetch this script from the marketing site, so they get the fix without an update.

Written for commit 6d43cf0. Summary will update on new commits.

View guided diff Turn on auto-fix

Summary by CodeRabbit

  • Bug Fixes
    • The CLI installer now falls back to the latest release when a version-specific download fails. If the requested version is already the latest, or the fallback download also fails, installation exits with an error and removes temporary files.

…exist

Desktop 2.0.3, 2.0.6 and 2.0.7 have no matching CLI release, so Set up over SSH
from those versions stopped on a 404. The installer now warns and installs
cli-latest instead.
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🧹 Preview Cleanup Complete

The following preview resources have been cleaned up:

  • ✅ Neon database branch

Thank you for your contribution! 🎉

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The CLI installer now retries a failed version-specific download using the latest release. If the requested release is already latest, or the fallback download fails, the installer removes the temporary file and exits with an error.

Changes: CLI download fallback

Layer / File(s) Summary
Download retry and failure handling
apps/marketing/public/cli/install.sh
The installer retries the latest release after a version-specific download fails. If the request is already for latest, or the fallback fails, it removes the temporary file and exits with an error.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

Suggested reviewers: saddlepaddle

Merge Risk: Minimal · up to 6d43c

Setting up a host over SSH no longer fails with a 404 when a Desktop release has no matching CLI release. The installer falls back to the latest CLI and still reports an error if that download also fails. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: install.sh now installs the latest CLI when the requested release has no tarball. It also follows conventional commit format (type(scope): subject). The changeset matc…
Description check Passed The description covers the problem, the change, and testing. It explains why Desktop 2.0.3, 2.0.6 and 2.0.7 fail with a 404 and why released builds get the fix without an update. It lists the platform…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: install.sh now installs the latest CLI when the requested release has no tarball. It also follows conventional commit format (type(scope): subject). The changeset matches the title: download_tarball retries with cli-latest on failure, and the diff touches only install.sh.

Full details: Description check

Explanation

The description covers the problem, the change, and testing. It explains why Desktop 2.0.3, 2.0.6 and 2.0.7 fail with a 404 and why released builds get the fix without an update. It lists the platforms tested and the results. The template asks for a conventional-commit title, a 'fixes #' issue link if one exists, and a checklist. The description has no issue link, no screenshots (the change is CLI-only, so screenshots are not required), and does not address the checklist items (lint/typecheck, maintainer edits, CLA). These are minor gaps, and the core required content is present.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 93d2ce16-7c9f-4576-9cc1-5d2dc8dd1dfa
Commits

Reviewing files that changed from the base of the PR and between 031ace5 and 6d43cf0.

Files selected for processing: 1

  • apps/marketing/public/cli/install.sh

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@Kitenite
Kitenite merged commit 1a09765 into main Nov 23, 2026
20 checks passed
@Kitenite
Kitenite deleted the fix/cli-install-missing-release-fallback branch November 23, 2026 06:23

This branch was previously deployed

1 inactive deployment
preview — 6d43cf0e Deployed Nov 23, 2026 by Kitenite via Cleanup Preview Resources #5991
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