[bug] Windows Desktop: update already applied but UI still shows ready toast; retry fails with no ready update
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
- On Windows, run Desktop 26.909.91205
- Wait for update 26.910.102135 to download → ready
- Click update (install silently, app restarts)
- After restart, confirm Settings → About is 26.910.102135
- Observe bottom-left「新版已就绪」card still present
- 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:
- first install is interrupted (
version-mismatch), and/or - 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.