Skip to content

Offer the move to OpenBot Cloud again after a Keep that followed a failed move - #2064

Merged
davidmckayv merged 2 commits into
mainfrom
fix/move-reoffer-unfinished
Nov 23, 2026
Merged

davidmckayv merged 2 commits into
mainfrom
fix/move-reoffer-unfinished

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Failed moves are recorded. A move that runs and doesn't finish (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.
  • A Keep after a failed move is offered again once. It is recorded with the app release it was chosen in (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.
  • A plain Keep (no failed move before it) is still never offered again at launch.
  • A finished move is never offered again, and it clears any failed move on record.
  • Settings offers the move exactly as before (offered_in_settings is unchanged).
  • The answer file stays readable both ways. Every new field is optional, so {"answer":"kept"} from an earlier release reads as before, and an earlier release reads this one's answer and skips the rest.
  • No visual change. The window still only does what move_offer tells 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

  • Rust, mock runtime (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 real move_offer and keep_self_contained commands. It checks that:
    • after a failed move and a Keep, the move isn't due again in the same release, is due after the update, and stays due until answered;
    • a second Keep sticks into the next release;
    • a plain Keep, and a Keep after a sign-in that didn't finish, are never offered again;
    • a finished move is never offered again, at launch or in Settings.
  • Rust, the rules (move_to_cloud/tests.rs):
    • a_keep_after_a_failed_move_is_offered_again_once_after_an_update;
    • the_answer_file_reads_across_releases;
    • the existing answer tests, moved to the new calls.
  • Window (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 follows due as 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:

red
test move_to_cloud::tests::a_keep_after_a_failed_move_is_offered_again_once_after_an_update ... FAILED
  panicked at src/move_to_cloud/tests.rs:121:5: offered again after the update
test result: FAILED. 20 passed; 1 failed (lib, move_to_cloud::tests)
test tests::a_keep_after_a_failed_move_is_offered_again_after_an_update ... FAILED
  panicked at src/main.rs:27809:9 (assert!(move_due(&rc3), "offered again after the update"))
test result: FAILED. 0 passed; 1 failed

green
test result: ok. 21 passed; 0 failed (lib, move_to_cloud::tests)
test tests::a_keep_after_a_failed_move_is_offered_again_after_an_update ... ok

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.
  • Desktop unit tests (bun test src in desktop): 541 pass, 162 skip (the browser tests, without OPENBOT_APP_BROWSER), 0 fail. tsc --noEmit clean.
  • Setup window browser layout tests (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.

…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
davidmckayv force-pushed the fix/move-reoffer-unfinished branch from f7e0e5d to 61446f0 Compare November 23, 2026 17:35
@davidmckayv
davidmckayv merged commit 9241e90 into main Nov 23, 2026
38 checks passed
@davidmckayv
davidmckayv deleted the fix/move-reoffer-unfinished branch November 23, 2026 17:47
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