Repository navigation
The setup window never stays blank: it shows a problem, recovers, and asks about the move at once - #2068
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 23, 2026 18:17
… asks about the move at once On a Mac, 1.2.0-rc.3 installed over 1.1.2 left the setup window a plain ground with nothing on it, across two launches. The shell answered the move question 15.3 seconds after launch (it walked every one of OpenBot's folders to size the move first), and after that the page drew nothing while its code still ran. Nothing caught a screen that failed to draw, nothing on macOS noticed a page that never painted, and nothing reached the log. - The setup window's tree sits in an error boundary. A screen that fails to draw shows "OpenBot hit a problem" on the window's own failure box, with Reload and the troubleshooting logs. The error, uncaught errors and unhandled rejections go to the Desktop log through a new page_error command. - The setup page is watched on every platform (stall::PageWatch, beside the existing UiWatch). A page that hasn't answered with something drawn 10s after it loaded, or goes quiet for 20s, with the window on screen, is reloaded once. Still quiet, a native alert says so with Restart and Get logs. The Windows cover is unchanged. - move_offer answers at once. The size of OpenBot's files is measured once a run on its own thread, and the window asks for it with move_footprint (capped at 20s); the move screen shows without the size until it arrives. The log says when the question was asked, how long the answer took, and how long sizing took. - The heartbeat carries the screen's heading and whether anything is drawn, and the log says which screen the setup window shows each time it changes.
davidmckayv
force-pushed
the
fix/setup-never-blank
branch
from
November 23, 2026 18:51
30d3cf2 to
dfba1c1
Compare
This was referenced Nov 23, 2026
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
On a Mac running OpenBot Desktop 1.1.2 (Self-Contained, on Docker Desktop), 1.2.0-rc.3 was installed over it. The setup window opened as a plain, empty page and stayed that way. It happened on two launches.
Why
[move] offer: due true15.3 seconds after launch (0.25 seconds on another computer). Before answering,move_offerwalked every one of OpenBot's folders to say how much the move frees, and this computer had two older installs on its disk.The fix
Behaviour only. It reuses the setup window's existing failure box and troubleshooting logs; there is no new visual design.
desktop/src/PageError.tsx,main.tsx). Every screen of the setup window is wrapped. A screen that fails to draw shows "OpenBot hit a problem" in the window's own "That didn't finish" box, with Reload and the existing Copy logs / Save to a file. The error goes to the Desktop log through a newpage_errorcommand, and so do uncaught errors and unhandled rejections (once each, at most 20 per page). The heartbeat runs outside the boundary, so the problem sheet counts as a live screen and stays up until the person reloads.stall::PageWatch,desktop_stall, the page-load handler inmain.rs). It extends the existing heartbeat and stall watch; it is not a second mechanism. With the window on screen:desktop_move.rs,MoveToCloud.tsx).move_offerreturns due or not due straight away. OpenBot's files are measured once per run on their own thread, and the window asks for the size with a newmove_footprintcommand, which waits up to 20 seconds. The move screen already shows without the size (footprintBytesnull) and now fills it in when it arrives. The log says when the question was asked, how long the answer took, and how long sizing took.[ui] the setup window shows "Move to OpenBot Cloud?"or[ui] the setup window shows nothing.Tests
Each regression test fails on main and passes with the fix.
desktop/src/PageError.test.tsx(happy-dom, the whole window asmain.tsxmounts it): a screen that fails to draw shows "OpenBot hit a problem" with Reload, Copy logs and Save to a file, and callspage_error. Uncaught errors and unhandled rejections reach the log once each. A window with nothing drawn says so in its heartbeat. On main'smain.tsxthe screen's error escapes and the window is left empty (2 fail).desktop/src/setupLayout.browser.test.ts, "a screen that fails to draw" (real Chromium and WebKit, light and dark): the sheet's heading, sentence and failure box are laid out and in view, the buttons are Reload, Copy logs and Save to a file, andpage_erroris called. It fails on main (2 fail in Chromium).tests::the_move_question_is_answered_at_once_however_long_sizing_takes(Rust, mock runtime, beside the move tests): with sizing slowed by 3 seconds,move_offeranswers due in under a second without the size. The size then arrives throughmove_footprint, and a second answer carries it. On main the answer took 3.07 seconds.stall::tests(plain Rust, the watchdog's state machine): never answering means one reload and then the alert; a heartbeat resets the watch; a page that answers with nothing drawn is stuck too; off screen, unread, elsewhere or quitting is never acted on.desktop_stall::tests::a_setup_page_that_never_answers_is_reloaded_then_the_person_is_toldruns the same through the calls the window and page make.MoveToCloud.test.tsx: the question shows at once without the size, and the size joins it once measured.heartbeat.test.ts: updated for the screen and drawn fields.Runs:
cargo test --locked --lib --bins: 1374 passed (lib), 397 passed (bin), 0 failedcargo fmt --check: cleancargo clippy --all-targets -- -D warnings: no findings in changed code. Twodoc_lazy_continuationerrors in the untouchedlocal_eval_ipc_tests.rscome from the local toolchain being newer than CI's.tsc --noEmit: clean. Desktop unit tests: 736 passed, 0 failed.