openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Auto-update is non-functional: update check reports asset=(none), so a newer version can never be downloaded

Open Al629176 opened this issue 2 months ago • 2 comments

Description

The in-app updater correctly detects that a newer version exists but reports asset=(none), so there is nothing to download and the update can never be applied. Every user is silently stuck on whatever build they installed manually.

Build: v0.64.6 → v0.64.7, macOS Reproducible: Yes — asset=(none) on every check, whether an update is available or not

Steps to Reproduce

  1. Run a build one version behind the latest release (here: 0.64.6 with 0.64.7 published)
  2. Wait for the periodic update check, or trigger one from the app
  3. Read the [update] lines in ~/.openhuman/logs/

Expected Behaviour

  • When update_available=true, the check resolves a downloadable asset for the current platform and architecture
  • The user is offered an update they can actually install
  • If no asset can be resolved, that is surfaced as an error rather than reported as an available update

Actual Behaviour

11:24:01 INF [update] check complete — latest=0.64.7 current=0.64.6 update_available=true asset=(none)
11:24:01 WRN [update:scheduler] update available: 0.64.6 → 0.64.7 (download: (no asset))

update_available=true with asset=(none). The scheduler logs the availability and stops, because there is no artifact to fetch.

asset=(none) also appears when already current, so the field is empty on every check rather than only when behind:

11:35:10 INF [update] check complete — latest=0.64.7 current=0.64.7 update_available=false asset=(none)
11:35:10 INF [update:scheduler] up to date (current: 0.64.7, latest: 0.64.7)

The user resolved this by downloading and installing 0.64.7 by hand. The app gave no indication that auto-update could not proceed.

Impact

  • Auto-update is non-functional for every user on this channel. Fixes ship and nobody receives them.
  • Users stay on old builds indefinitely without knowing, so bug reports keep arriving against versions already fixed
  • The failure is silent — the only evidence is a WRN line in a log file the user will not read
  • Manual download is the only upgrade path, which does not scale beyond the team

Related

The manual-install path also lands people in App Translocation when the .app is launched straight from Downloads, which has its own knock-on effects on first-run behaviour. Fixing auto-update removes that class of problem too.

Acceptance Criteria

  • [ ] The release pipeline publishes a downloadable asset for macOS arm64 (and each shipped platform) against the version the update feed advertises
  • [ ] [update] check complete reports a resolved asset URL when update_available=true
  • [ ] An available update with no resolvable asset is treated as an error: logged at ERR, and surfaced in the app rather than silently skipped
  • [ ] The user can complete an update from inside the app, without a manual download
  • [ ] Confirm which channel the feed points at and that release and staging both publish assets
  • [ ] Verified by running a build one version behind and updating through the app to the current release

Al629176 avatar Sep 29 '26 06:09 Al629176

Auto-update is non-functional: update check reports asset=(none), so a newer version can never be downloaded

Labelled priority: p1.

tinysweeper avatar Sep 29 '26 06:09 tinysweeper

Picking this one up.

This looks like an old fix that got lost in a later reshuffle: the check is hunting for a filename shape the releases stopped publishing, and the download side lost the matching piece at the same time, so fixing only the first half would swap one broken update for another. Planning to restore both and cover them with tests.

obchain avatar Sep 29 '26 08:09 obchain