Skip to content

Start puts back a missing image list instead of blaming the Bot - #2063

Merged
davidmckayv merged 1 commit into
mainfrom
fix/start-restores-missing-image-list
Nov 23, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
fix/start-restores-missing-image-list

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

What the person saw

OpenBot Desktop 1.1.2 on a Mac, Self-Contained. ~/openbot/container-images.json had been deleted by something outside OpenBot. Start then failed:

  • "Opening OpenBot: Failed. OpenBot did not start."
  • "This version of OpenBot does not include the Bot you picked. Go back and choose another, or update OpenBot."
  • Technical details: could not read ~/openbot/container-images.json: No such file or directory

All 8 Retries failed at once. Repair installation fixed it by downloading only the image list again. The same code is on the current release candidate and on main.

Cause

  • Start read the picked Bot's image from the image list (harness::picked, which calls deployment::reference) before it checked the install (preparation::require).
  • deployment::reference returned the same kind of error for three cases: the list could not be read, the list was not valid, and the one real case, a release that does not publish the Bot. Start said all three as "does not include the Bot you picked".
  • The window runs Install by itself, then starts again, when Start reports an installation problem (preparation::required). It never got that signal here, so it never ran Install.
  • deployment::needs_fetch already says a missing list must be downloaded again, and Install acts on it. Start did not.
  • Change AI connection said the same wrong sentence ("does not include the Bot that connection needs") for the same reason.

Fix

Rust only. The window's look and copy are unchanged.

  • Before it reads the Bot's image, Start asks preparation::incomplete_deployment: an installed deployment that needs_fetch says must be laid out again is an installation problem. Its detail names the missing list. The window then runs Install, which downloads only the list, and starts. If that install fails (offline, say), the window shows Install's failed download row and Retry installation, as for any failed install.
  • deployment::image_reference returns a typed error: Unreadable (missing or invalid list) or NotIncluded (the release does not publish the image). harness::pick carries it as PickError::ImageList or PickError::Refused. deployment::reference and harness::picked keep their string errors for every other caller.
  • Start and Change AI connection turn ImageList into the installation problem, and keep the Bot sentence only for Refused.
  • The install check uses the same incomplete_deployment, so Start and the install check agree.

Tests

Regression tests, red on origin/main and green with the fix:

  • tests::start_with_its_image_list_deleted_asks_for_install_rather_than_blaming_the_bot (main.rs, mock runtime, fake engine): installed deployment, list deleted, a Bot picked. Start's problem is the installation kind the window acts on, and says nothing about "does not include". On main it fails with exactly what the person saw: said: "This version of OpenBot does not include the Bot you picked. ...", detail: "could not read .../container-images.json: No such file or directory", connection: None.
  • tests::start_with_an_unreadable_image_list_asks_for_install_rather_than_blaming_the_bot: the same with a list that is not JSON. On main: the Bot sentence with container-images.json is not readable.
  • ai_connection::tests::a_change_with_the_image_list_gone_is_an_install_problem_not_a_missing_bot: Change AI connection with the list gone is the installation problem; with the list there and the Bot not in it, it still says the Bot sentence. On main: "does not include the Bot that connection needs".

Kept behaviour:

  • tests::start_of_a_bot_the_release_does_not_publish_still_says_so: a release that really lacks the Bot still gets the Bot sentence and is not sent to Install (passes on main and with the fix).
  • preparation::tests::a_deleted_image_list_is_downloaded_again_alone_and_the_install_check_passes: with a fake download, Install's lay-out step at the installed version downloads only the image list (never the release archive), the bytes come back, and the install check passes again.
  • deployment::tests::an_unreadable_image_list_is_told_apart_from_a_release_without_the_image.
  • Window: a Start refused for a missing image list installs it again and starts (App.test.tsx), beside the existing auto-install-then-start tests, which still pass.
  • Browser layout (setupLayout.browser.test.ts, light and dark): a Start whose list is gone installs again by itself, and offline shows Install's failed download row with Retry installation, with nothing about the Bot.

Runs:

  • cargo test --lib --bins: lib 1371 passed, 0 failed, 58 ignored; bin 397 passed, 0 failed, 1 ignored.
  • cargo fmt: clean.
  • cargo clippy --all-targets -- -D warnings: nothing in the changed code. It stops on two doc_lazy_continuation lints in local_eval_ipc_tests.rs, which this change does not touch and which are on main.
  • Desktop unit tests (bun test desktop/src): 541 pass, 164 skip, 0 fail. tsc --noEmit clean. Biome clean.

A Mac on 1.1.2 (Self-Contained) had ~/openbot/container-images.json deleted by something outside
OpenBot. Start then failed with "This version of OpenBot does not include the Bot you picked. Go
back and choose another, or update OpenBot.", its technical details "could not read
~/openbot/container-images.json: No such file or directory", and every Retry failed at once.
Repair installation fixed it by downloading only the image list again.

Start read the picked Bot's image from the list before it checked the install, and every failure
to read that list was said as a release without the Bot. The window runs Install by itself only
for an installation problem, so it never did.

- Start asks first whether the installed deployment needs laying out again (the same check the
  install check already makes, `deployment::needs_fetch`). A missing list is an installation
  problem, so the window runs Install, which downloads only the list, and starts.
- `deployment::image_reference` tells an unreadable list apart from a release that does not
  publish the image, and `harness::pick` carries that through. A list there but unreadable is the
  same installation problem. Only a Bot the release really lacks keeps the Bot sentence, in Start
  and in Change AI connection.
@davidmckayv
davidmckayv force-pushed the fix/start-restores-missing-image-list branch from 2854ec4 to a1a786d Compare November 23, 2026 17:52
@davidmckayv
davidmckayv merged commit 2e2d0d4 into main Nov 23, 2026
38 checks passed
@davidmckayv
davidmckayv deleted the fix/start-restores-missing-image-list branch November 23, 2026 18:04
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