Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
- Run a Nightly desktop app connected to a server under the T3 background service, both on nightly N-1.
- The desktop's update check (startup, 4-hour poll or a manual check) finds nightly N, and the sidebar pill offers it.
- Nightly N+1 is published before the next check.
- Click the sidebar update pill and run Update everything.
Expected behavior
One click leaves the desktop app and the server on the same build, the newest one.
Actual behavior
The desktop app installs N+1 and the server installs N. After the desktop relaunches, the server is one build behind and is offered an update again; a second click moves it to N+1.
This happened 4 times in the last 4 days on this setup (server log pairs below). The desktop trace covers the last two.
Cause, from the source on main (f58085a):
useUpdateEverything.ts:57setstargetVersion = localUpdateVersion ?? APP_VERSION.localUpdateVersionis the pill's offered version from the last check (SidebarUpdatePill.tsx:240), andcollectServerUpdateTargets(line 74) bakes it into every server target when the dialog renders.runUpdateEverything(updateEverything.logic.ts:459) runsdownloadLocaland the server stage/update in parallel, so the servers never see what the desktop download resolves.- Since fix(desktop): an update download fetches the newest release, not the last check's #37476,
downloadAvailableUpdate(DesktopUpdates.ts:688) checks the feed again before downloading and gets N+1. - A boot-service host installs exactly the
targetVersionit is sent (selfUpdate.ts:207), so it gets N.
With checks every 4 hours and nightlies about every 6.5 hours, a nightly often lands between the last check and the click.
Related: #39193 (closed as not planned) reports the same split from the composer banner and Connections "Update all". Its closing trace says the sidebar path avoids it once the app has found the newer build. This is the sidebar path: the app had found N, and N+1 came out after that check. #37462 / #37476 fixed the desktop half, which is what makes the two sides diverge now.
Possible fixes: send boot-service servers the version the desktop download actually resolved (resolve it once at click time and use it for both), or have a boot-service host treat targetVersion as a minimum and install the newest release, as desktop-managed hosts already do.
Impact
Minor bug or occasional failure
Version or commit
0.1.12-nightly.20261123.5124 when clicked (desktop and server); code refs main @ f58085a
Environment
Windows 11, T3 Code (Nightly) desktop app; Linux (Ubuntu) server run by the T3 background service (self-update capability boot-service)
Logs or stack traces
# Server (boot-service log): each click pair, about a minute apart
Server update prepared ... targetVersion: '0.1.12-nightly.20261120.5009' -> then '...20261121.5024'
Server update prepared ... targetVersion: '0.1.12-nightly.20261121.5038' -> then '...20261121.5051'
Server update prepared ... targetVersion: '0.1.12-nightly.20261122.5098' -> then '...20261122.5111'
Server update prepared ... targetVersion: '0.1.12-nightly.20261123.5138' -> then '...20261123.5151'
# 2026-11-23 (UTC). npm publish: 5138 09:53:11Z, 5151 16:25:46Z
10:54:33Z desktop poll update available 0.1.12-nightly.20261123.5138
14:54:34Z desktop poll (no change)
16:47:28Z desktop.ipc.updates.download -> checking for updates {reason: download}
16:47:28Z server ws.rpc.server.updateServer (stage)
16:47:29Z desktop update available 0.1.12-nightly.20261123.5151
16:47:45Z server Server update prepared; targetVersion '0.1.12-nightly.20261123.5138'
16:47:51Z desktop update downloaded 0.1.12-nightly.20261123.5151
16:47:57Z desktop quitAndInstall; relaunched 16:48:11Z on 5151
16:48:31Z server ws.rpc.server.updateServerWithProgress (second click)
16:48:35Z server Server update prepared; targetVersion '0.1.12-nightly.20261123.5151'
# 2026-11-22 (UTC). npm publish: 5098 13:50:56Z, 5111 20:23:36Z
14:58:08Z desktop poll update available 0.1.12-nightly.20261122.5098
18:58:09Z desktop poll (no change)
20:27:33Z desktop.ipc.updates.download -> update available 0.1.12-nightly.20261122.5111
20:27:37Z server Server update prepared; targetVersion '0.1.12-nightly.20261122.5098'
20:27:45Z desktop update downloaded 0.1.12-nightly.20261122.5111
20:27:53Z desktop quitAndInstall
20:28:31Z server Server update prepared; targetVersion '0.1.12-nightly.20261122.5111'Screenshots, recordings, or supporting files
No response
Workaround
After the desktop relaunches, update the server again from its update banner.
Activity
bompus commentedon Nov 23, 2026
A fix is ready on bompus:fix/update-everything-server-target (reviewed on my fork as bompus#29). Servers take the version the desktop download starts on: the download checks the feed before it starts, so that version is final once it reports
downloading. Only the servers shown in the confirmation dialog move, never below their planned target, and servers keep the planned target if the download doesn't start within a minute. Desktop install still advances on its own, as #37476 intends. About 360 added lines with tests, all inapps/web. I can open the pull request once triage confirms the direction.