Repository navigation
Offer the move to OpenBot Cloud again after a Keep that followed a failed move - #2064
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 23, 2026 17:18
…iled move On 1.2.0-rc.2 a move failed its last check five times. At the next launch the offer came back and the person chose Keep to get back to work. Keep ended the offer at launch for good, so rc.3, which fixed the move, never offered it again. A move that runs and doesn't finish is now kept on record. A Keep chosen while one is on record is offered again at the first launch of another release, once: a second Keep sticks. A plain Keep is never offered again at launch, a finished move never is and clears what failed before it, and Settings offers the move as it did. The answer file stays readable by earlier releases.
davidmckayv
force-pushed
the
fix/move-reoffer-unfinished
branch
from
November 23, 2026 17:35
f7e0e5d to
61446f0
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
On 1.2.0-rc.2 a person on OpenBot (Self-Contained) moved to OpenBot Cloud. The move failed its last check five times in a row ("messages: 1331 of 1369"). They quit, and at the next launch the move was offered again (
[move] offer: due true). This time they chose Keep to get back to work ([move] the person keeps OpenBot (Self-Contained)).rc.3 fixed the failing check. After the update the log says
[move] offer: due false, so the window went straight to OpenBot, and they reported: "This time, I didn't get a prompt to move to the Cloud. I can't figure out how to move to Cloud."Why
A failed move already left no answer on record, which is why rc.2 offered the move again. Keep, though, ended the offer at launch for good (
move_to_cloud::due: any answer ends it). A Keep chosen right after a move that kept failing doesn't mean "not now". It means "not while it's broken". Nothing kept that difference, so the release that fixed the move had no reason to ask again.The fix
move-failed,move-mismatch,move-stopped) is now on record beside the answer (failedMove). A sign-in that didn't finish (Cancel included), a second move refused while one runs, and an app connected elsewhere are not failed moves.keptAfterFailedMoveIn). The move is due again at launch in any other release, once. Keeping again then is final, even after another failed move, and clears the record.offered_in_settingsis unchanged).{"answer":"kept"}from an earlier release reads as before, and an earlier release reads this one's answer and skips the rest.move_offertells it.Limit: a Keep recorded by rc.2 or earlier has no failed move beside it, because those releases didn't record one. Those people aren't offered the move again at launch, and Settings → Computer → Connection → "Move to OpenBot Cloud" is still their way in.
Tests
main.rs,a_keep_after_a_failed_move_is_offered_again_after_an_update): launches of the app at 1.2.0-rc.2, rc.3 and 1.2.0 over the same installation and config folder, through the realmove_offerandkeep_self_containedcommands. It checks that:move_to_cloud/tests.rs):a_keep_after_a_failed_move_is_offered_again_once_after_an_update;the_answer_file_reads_across_releases;App.test.tsx, "a Keep after a failed move: the launch after the update asks again"): one page has the move fail its check and the person press Keep on "Not everything arrived". At the next launch, with the shell saying the move is due, the window opens on "Move to OpenBot Cloud?" before anything starts. This test passes on main too, because the window already followsdueas the shell gives it. The change, and the red, are in the shell.Red with main's rule (a Keep ends the offer at launch), green with the fix:
Full runs:
cargo test --locked --lib --bins: lib 1370 passed, 0 failed, 58 ignored; bin 395 passed, 0 failed, 1 ignored.cargo fmt --check: clean.bun test srcindesktop): 541 pass, 162 skip (the browser tests, withoutOPENBOT_APP_BROWSER), 0 fail.tsc --noEmitclean.OPENBOT_APP_BROWSER=1 bun test src/setupLayout.browser.test.ts): 161 pass, 1 fail, run locally on a Mac in headless Chromium. The one failure is "with scrollbars that take room, as Windows draws them", which expects scrollbars that take room. A Mac draws overlay scrollbars, so that test can't pass there, and it doesn't touch the move screens. The window's own code here is unchanged apart from comments. CI's Linux job "app (real browser, desktop setup window)" runs the same file.