MiMo-Code icon indicating copy to clipboard operation
MiMo-Code copied to clipboard

[bug] Windows Desktop: update already applied but UI still shows ready toast; retry fails with no ready update

Open chenyi720 opened this issue 2 months ago • 1 comments

Environment

  • OS: Windows (x64)
  • App: Xiaomi MiMo Desktop (Xiaomi MiMo.exe)
  • Version path: 26.909.91205 → 26.910.102135
  • Update feed: https://mimocode-cdn.xiaomimimo.com/mimocode/mimodesktop/manifest.json

Summary

After a successful auto-update, the app still shows a bottom-left toast 「新版 26.910.102135 已就绪」 and a top error toast 「更新未能启动: no ready update」. Installed version is already 26.910.102135 (latest), so Retry cannot start any update.

Steps to reproduce

  1. On Windows, run Desktop 26.909.91205
  2. Wait for update 26.910.102135 to download → ready
  3. Click update (install silently, app restarts)
  4. After restart, confirm Settings → About is 26.910.102135
  5. Observe bottom-left「新版已就绪」card still present
  6. Click「重试」

Expected

  • After successful update, clear the「新版已就绪」notification
  • If already on latest version, Retry should say「已是最新版」(or similar), not fail with no ready update

Actual

  • Toast claims a new version is ready while the app is already that version
  • Retry starts install path, then fails with: 更新未能启动: no ready update
  • Contradictory UI state

Evidence (local logs / state)

From %APPDATA%\Xiaomi MiMo\logs\2026-09-11.log:

  • First install attempt left transaction interrupted with version-mismatch
  • Later restart successfully launched as 26.910.102135
  • Subsequent checks: Update for version 26.910.102135 is not available (latest version: 26.910.102135, downgrade is disallowed).

From %APPDATA%\Xiaomi MiMo\updates\win-update-transaction.json (stale after success):

{
  "phase": "interrupted",
  "fromVersion": "26.909.91205",
  "targetVersion": "26.910.102135",
  "error": "version-mismatch"
}

Pending installer still present under: %LOCALAPPDATA%\xiaomi-mimo-desktop-updater\pending\XiaomiMiMo-26.910.102135-x64-setup.exe

Likely root cause

Windows update transaction/reconcile path does not fully clear UI "update ready" state when:

  1. first install is interrupted (version-mismatch), and/or
  2. a later restart successfully applies the same target version. UI keeps the old "ready" card; retry then correctly finds no ready update and surfaces the raw error string.

Impact

All Windows auto-update users may see a stuck/contradictory update prompt after a successful upgrade.

chenyi720 avatar Sep 11 '26 03:09 chenyi720

Confirmed again on 26.910.102135 → 26.912.121036 (2026-09-14)

JIRBOY avatar Sep 14 '26 03:09 JIRBOY