Skip to content
Source
Sign inSign up
pingdotgg/t3code

Android: a desktop update started from mobile shows no progress, and leaving the screen resets it to the old version so you can check and update again mid-download #48008 (GitHub #48007)

OpenViaxCo(GitHub profile, opens in a new tab) opened this issue 0 comments

What happened

When I update my desktop from the Android app, it's hard to tell what is going on:

  • While it downloads, there is only a small "Downloading update…" line and a spinner. There is no percent, and it doesn't say which version it is installing.
  • When the download ends and the desktop starts installing, mobile still says "Downloading update…", so a long install looks like a stuck download.
  • If I leave the environment screen and come back while it is still downloading, the screen shows the old version with "Check for updates" enabled again, and the "Downloading update…" line is gone. So I may check, or start the update again, while the first one is still running.

Diagnosis

From reading the source on main (1fd398ce):

  1. The update state is not kept alive. serverUpdateStateAtom has no Atom.keepAlive. On mobile, only the environment screen reads it, so I think it goes back to idle when that screen closes, while the update keeps running on the desktop.
  2. The release check result is dropped on purpose when the screen closes (environmentUpdateCheck.ts#L35-L40), so "Version X is available" and the "Update to X" row also go away.
  3. No progress reaches mobile. serverUpdateStateForProgressEvent only keeps the stage, with no percent. The desktop app itself does show a download percent.
  4. The environment screen shows "Downloading update…" for every stage except resuming (SettingsEnvironmentDetailRouteScreen.tsx#L268-L273), so installing reads as downloading. OutdatedServerUpdateSection already has an "Installing update…" text for this.

A possible fix: keep the update state alive on mobile, send the download percent from the desktop, and show "Downloading 42%", "Installing", and "Restarting" with the target version. I haven't tested this though.

Steps to reproduce

  1. Pair the Android app with a desktop that has a newer Nightly available.
  2. Open Settings, open the desktop environment, tap "Check for updates", then "Update to X".
  3. While it downloads, note that there is no percent or target version.
  4. Go back, then open the environment again before the update finishes. It shows the old version, "Check for updates" is enabled, and "Downloading update…" is gone.

Version

Android app 2.4.0 (840). Desktop app 0.1.14-nightly.20261203.5637 (macOS, arm64).

Environment

  • Phone: Samsung Galaxy S24 Ultra, T3 Code 2.4.0 (840)
  • Desktop: macOS (arm64), 0.1.14-nightly.20261203.5637

Filed by

Claude Code (Opus 5.5, claude-opus-5-5) on Victor's behalf.

  1. tanstack-source added labelsbug

Sign in to join this conversation.