Repository navigation
Every Update and restart asks to move first from the disk image, and no button says Downloading before it does - #2943
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 4, 2026 16:16
…no button says Downloading before it does The update banner in OpenBot's page, Settings > This computer and the version gate called the page's install_update, which went straight to the install: OpenBot open from its disk image still downloaded the update and failed with "Read-only file system". Every Update and restart now goes through update_or_move, which asks to move to Applications first where the install can't work, and nothing else reaches the install. While the app asked, every update button already said "Downloading…", and Not now then showed "Couldn't install the update". The shell now says in its offer whether Update and restart moves first, and the buttons keep their idle label until the download really starts, as an app's window does while LetsMove or Electron's move to Applications asks.
…nutes, so one never holds up the suite
…er never turns to Downloading while the app asks
…ffer to be read again, not for the clock
…ected disk image On the Mac box, OpenBot moved at update time stopped as an update does, leaving the local backend running, and quit without Quit's cleanup. The backend's sign-in worker, started by the command-line tool inside the disk image, kept running from the ejected image and held the backend's port, so the moved app's Start failed. Quitting through Quit stops the backend and its helpers first, and the moved app starts everything fresh.
davidmckayv
force-pushed
the
desktop-update-label-and-entry
branch
from
December 4, 2026 19:08
cfb21f0 to
ac254a1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Follow-up to #2937, which added the move to Applications. Two problems found on the Mac box pass are fixed here.
1. The banner in OpenBot's own page never asked to move. The banner, Settings > This computer, and the gate for an OpenBot that needs a newer app reach the shell through the page's
install_updatecommand. That command went straight to the install. OpenBot open from its disk image then downloaded the update and failed with "Read-only file system (os error 30)", which is the reported path. Now every Update and restart goes through one entry point,update_or_move: the page's command, the setup window's command, and Check for Updates…. Where OpenBot can't install, it asks to move to Applications first and downloads nothing. Anywhere else, the update installs as before. A second press while the dialog is up asks nothing more.2. The buttons said "Downloading…" while the app asked to move. Pressing Update and restart from the disk image showed the move dialog, and behind it the button already said "Downloading…". Nothing downloads until OpenBot has moved. Not now then showed "Couldn't install the update", about the person's own choice. Now:
movesFirstin the update offer);A desktop app from before
movesFirstnever asks to move, and its pages behave as before.3. After a move at update time, the moved app couldn't start the backend. Found on the Mac box. The move stopped OpenBot as an update does, which leaves the local backend running, and quit without Quit's cleanup. The backend's sign-in worker had been started by the command-line tool inside the disk image. It went on running from the ejected image and held the backend's port, so the moved app's Start failed: first "No recorded local stack was found", then "Another app is using a network port". The move now quits through Quit itself, which stops the backend and its helpers. Nothing runs from the image when it is ejected, and the moved app starts everything fresh, as LetsMove and Electron's move do.
How the leaders do it
app.moveToApplicationsFolder()runs the move synchronously, and a conflict handler that returns false stops it with no error. The calling app shows its own dialog first and changes nothing until the person answers. https://www.electronjs.org/docs/latest/api/app#appmovetoapplicationsfolderoptions-macosOpenBot follows both: the page keeps its idle state while the app's dialog asks, and says nothing of a choice not to move.
Tests
update_or_move_ipc_tests.rs, through the page's realinstall_updatecommand and its permissions, as OpenBot's page calls it:install_app_update_nowexceptupdate_or_move;Red: with the page's command on its old path, the first and third fail (
left: Err("This build of OpenBot can't update itself."),right: Err("OpenBot has to be in Applications to update.")). Green: all pass.app/tests/update-banner.test.tsxanddesktop/src/UpdateOffer.test.tsx: withmovesFirst, the button still says Update and restart while the shell's call is pending, and Not now leaves no alert. Red: with the label tied to the press again, both fail (Received: <p role="status">Downloading…</p>). Green: both pass.app/tests/update-banner-layout.test.tsx(real browser): while the app asks, the banner keeps Update and restart in the same place, light and dark. Run in WebKit (OPENBOT_APP_ENGINE=webkit) and Chromium.app_update: the offer saysmovesFirst.app_location) now make one disk image at a time and give eachhdiutilcall two minutes. Run side by side on this Mac, onehdiutil createwaited 16 minutes with its image attached and held up the whole suite. Now one too slow fails and names itself.cargo test --locked --lib --bins, clippy,cargo fmt --check, the desktop window's bun tests, typecheck and biome all pass.On a real Mac
An Internal build of this branch, on the EC2 Mac test box with OpenBot 1.0.3 in Applications. It was opened from its mounted disk image, OpenBot was started, and the update banner in OpenBot's page was pressed (the reported path), with a test feed naming 9.9.9:
Looked at
The banner in WebKit and Chromium, light and dark, before the press and while the app asks: identical, with "OpenBot Desktop 1.0.1 is available. Update and restart" and the close button. With the fix turned off, the same moment showed "Downloading…".
Changelog
OpenBot Desktop.