Repository navigation
Start puts back a missing image list instead of blaming the Bot - #2063
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 23, 2026 17:13
davidmckayv
force-pushed
the
fix/start-restores-missing-image-list
branch
from
November 23, 2026 17:35
c27b826 to
2854ec4
Compare
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
force-pushed
the
fix/start-restores-missing-image-list
branch
from
November 23, 2026 17:52
2854ec4 to
a1a786d
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 the person saw
OpenBot Desktop 1.1.2 on a Mac, Self-Contained.
~/openbot/container-images.jsonhad been deleted by something outside OpenBot. Start then failed:could not read ~/openbot/container-images.json: No such file or directoryAll 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
harness::picked, which callsdeployment::reference) before it checked the install (preparation::require).deployment::referencereturned 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".preparation::required). It never got that signal here, so it never ran Install.deployment::needs_fetchalready says a missing list must be downloaded again, and Install acts on it. Start did not.Fix
Rust only. The window's look and copy are unchanged.
preparation::incomplete_deployment: an installed deployment thatneeds_fetchsays 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_referencereturns a typed error:Unreadable(missing or invalid list) orNotIncluded(the release does not publish the image).harness::pickcarries it asPickError::ImageListorPickError::Refused.deployment::referenceandharness::pickedkeep their string errors for every other caller.ImageListinto the installation problem, and keep the Bot sentence only forRefused.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 withcontainer-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.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.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 twodoc_lazy_continuationlints inlocal_eval_ipc_tests.rs, which this change does not touch and which are on main.bun test desktop/src): 541 pass, 164 skip, 0 fail.tsc --noEmitclean. Biome clean.