Skip to content

Every Update and restart asks to move first from the disk image, and no button says Downloading before it does - #2943

Merged
davidmckayv merged 6 commits into
mainfrom
desktop-update-label-and-entry
Dec 4, 2026
Merged

davidmckayv merged 6 commits into
mainfrom
desktop-update-label-and-entry

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

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_update command. 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:

  • the shell says whether Update and restart moves first (movesFirst in the update offer);
  • every update button (the banner, Settings > This computer, the version gate, and the setup window's offer, Check for updates, Update OpenBot and the security notice) keeps its idle label until the download really starts: after the move, or straight away when OpenBot is already somewhere it can install;
  • after Not now, the button is idle again and no failure line appears, because the app's own dialog already said what happened. The visual design is unchanged.

A desktop app from before movesFirst never 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

OpenBot 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 real install_update command and its permissions, as OpenBot's page calls it:
    • from a disk image, the shell shows "OpenBot 1.2.11 is available. OpenBot is open from its disk image…", downloads nothing, answers the page that it didn't install, and asks again on the next press;
    • somewhere OpenBot can install, the same command goes straight to the install with no dialog;
    • nothing calls install_app_update_now except update_or_move;
    • a move at update time quits through Quit, never through an update's stop or a quit marked done. Red against Desktop offers to move itself to Applications when it runs from its disk image #2937's move, green here.
      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.tsx and desktop/src/UpdateOffer.test.tsx: with movesFirst, 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 says movesFirst.
  • The disk-image tests from Desktop offers to move itself to Applications when it runs from its disk image #2937 (app_location) now make one disk image at a time and give each hdiutil call two minutes. Run side by side on this Mac, one hdiutil create waited 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:

  • The banner's Update and restart showed "OpenBot 9.9.9 is available. OpenBot is open from its disk image, so it can't update itself…" with Move to Applications and Not now. There was no "Read-only file system", and the log shows no download started.
  • Not now left OpenBot where it was. Pressed again, Move to Applications moved it: the copy on the image quit, OpenBot reopened from /Applications (this build, no quarantine), and the image was ejected.
  • That run is where the third fix above was found. The page there is served by the v1.2.11 server image, so its banner is the released one. The page half of fix 2 reaches people with the next server release.

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.

  • Fixed: Update and restart in OpenBot's page from the disk image. On a Mac, the update banner and Settings now ask to move OpenBot to Applications too, instead of downloading the update and failing with "Read-only file system". While the app asks, the button stays as it was, and Not now leaves it so. After the move, OpenBot starts again from Applications.

…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.
…er never turns to Downloading while the app asks
…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
davidmckayv force-pushed the desktop-update-label-and-entry branch from cfb21f0 to ac254a1 Compare December 4, 2026 19:08
@davidmckayv
davidmckayv added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit 7c6d0b1 Dec 4, 2026
54 checks passed
@davidmckayv
davidmckayv deleted the desktop-update-label-and-entry branch December 4, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant