Skip to content

Explain GitHub release lookup failures when a fresh install has no CLI #37

In review

Description

@sh00kapic

On Apple Silicon the opt-in release-download test received HTTP 403 from the latest-release API while v0.85.0 and its Mac asset existed. The production updater logs a generic HTTP status and falls back to a cached or PATH binary. A fresh install without either can end up at the generic binary-not-found message. The same live download test later passed. This is intermittent and separate from the DMG-selection issue in #29.

Expected behavior and verification

Preserve caching and fallback for existing users. For a fresh install, distinguish a failed release lookup from a missing platform asset, expose useful GitHub response or retry information, and allow retry. Exercise a simulated 403 followed by a successful response without relying on the live API.

ctrace/BinaryUpdater.ts line 74 · extension.ts line 121

Activity

  1. added
    bug
    on Nov 20, 2026
  2. Arthurvroum commented on Nov 25, 2026

    @Arthurvroum
    Collaborator

    Fixed on branch 37-explain-release-lookup-failure (acafc2e), pull request #52.

    • The updater records why its last attempt failed: the release lookup, a release with no file for this platform, or the download.
    • A failed lookup reports GitHub's status and message, plus when the rate limit resets or the Retry-After value. GITHUB_TOKEN is sent to the API when it is set.
    • On a fresh install with no CLI, the error message offers Retry, which checks GitHub again immediately and skips the failure backoff, and Show Output.
    • Existing users keep the cached and PATH fallbacks unchanged.
    • The HTTP client can be replaced in tests. A simulated 403 followed by a successful release and download is covered without the live API, along with a missing platform asset and a network error.

    Unit and workspace suites pass locally (Linux).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions