Skip to content

fix(web): Update everything sends servers the build the desktop app downloaded - #29

Open
bompus wants to merge 4 commits into
mainfrom
fix/update-everything-server-target
Open

bompus wants to merge 4 commits into
mainfrom
fix/update-everything-server-target

Conversation

@bompus

@bompus bompus commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Pre-upstream review on the fork. Once review is settled, this branch goes to pingdotgg/t3code as its own PR, and this one closes.

Update everything sent background-service servers the version from the desktop app's last update check, which can be up to 4 hours old. The desktop download checks the feed again before downloading (pingdotgg#37476) and takes the newest build. When a nightly came out between the last check and the click, one click put the desktop app on N+1 and the server on N, and the server needed a second update after the relaunch. Logs from four of these splits in four days are in pingdotgg#41548.

The desktop download checks the feed before it starts, so its version is final once it reports downloading. Servers now take that version and stage and update to it, without waiting for the download to finish, and only the servers shown in the confirmation dialog move. If the download settles without starting, or does not start within a minute, servers keep the planned target; one that fails after starting still moves servers to the release it started on. Servers never move below their planned target, and the saved result records the version the desktop download finished with. Each server's reconnect deadline starts when its update starts, not when providers finish. A skipped local download keeps the planned targets, and a track switch keeps its migration-checked release.

Known limits

Tests

vp test run on updateEverything.logic.test.ts, updateEverythingRun.test.ts and SidebarUpdatePill.browser.test.tsx (40 passed, with desktopUpdate.logic.test.ts); typecheck and lint for apps/web. New tests cover reading the download's version from its update state (including the never-starts and timeout cases), retargeting to it, staging and updating before the download finishes, skipping staging once providers settle, and the server-phase start time.

Claude Opus 5.5 via Claude Code in T3 Code.

…ownloaded

Servers were sent the version from the desktop app's last update check,
which can be hours old, while the desktop download checks the feed again
and takes the newest build. One click left a boot-service server one
nightly behind the desktop app.

Servers now stage and update once the local download reports the version
it downloaded, and the confirmed servers move to that version.

Fixes pingdotgg#41548
@bompus bompus added author:anthropic Pull request written by a anthropic model author-model:opus-5-5 A model that wrote part of this pull request labels Nov 23, 2026
… starts

Waiting for the whole desktop download held every server update behind it:
a stalled download blocked servers and kept the update controls locked, the
capsule showed no download progress, and staging lost its overlap with
provider installs.

The desktop download checks the feed before it starts, so the version is
final once it reports downloading. Servers now take that version, or the
planned one if the download settles without starting or does not start
within a minute. The run shows the new version while it is known.

@bompus-ai-review bompus-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bompus AI Review (Gemini 4 Neon): 1 finding(s).

Staging overlaps provider installs. When providers settle before the
download's version is known, a stage-only request would only delay the
server update and hide its progress, so servers update directly.

@bompus-ai-review bompus-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bompus AI Review (GPT-6.2 Astra): 4 finding(s).

Review 2: findings below high are posted only within 3 lines of a change since f5839d8.

…nloaded version

A stale feed can serve an older build than planned, which a server may
already run and would refuse, so retargeting only moves servers up.

The saved run result now takes the version the desktop download finished
with, so the launch notice counts the app as updated even when servers
kept the planned target because the download started late.

@bompus-ai-review bompus-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bompus AI Review (Gemini 4 Neon): 0 finding(s).

Review 3: only high findings and above are posted from here on.

@bompus-ai-review bompus-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bompus AI Review (Gemini 4 Neon): 0 finding(s).

Review 4: only high findings and above are posted from here on.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author:anthropic Pull request written by a anthropic model author-model:opus-5-5 A model that wrote part of this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant