Repository navigation
Add experimental server migration between machines - #3783
Merged
SawyerHood merged 1 commit intoSep 16, 2026
Merged
Conversation
SawyerHood
force-pushed
the
bb/make-machines-use-proper-english-thr_tu3jfpi3hi
branch
from
September 16, 2026 17:11
3215087 to
75c2f29
Compare
SawyerHood
deleted the
bb/make-machines-use-proper-english-thr_tu3jfpi3hi
branch
September 16, 2026 17:18
3 tasks done
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.
Human comments
What was wrong
The machine running the bb server could not hand that role to another enrolled machine. Moving from a laptop to an always-on machine required a manual migration, and the Machines screen did not clearly explain where shared thread history and settings live.
What changed
serverMoveexperiment, with a preflight checklist, progress overlay, cancellation and recovery, automatic reconnection, and old-server-copy cleanup.HOST_DAEMON_PROTOCOL_VERSIONfrom 210 to 211.How you verified
After rebasing onto main: 354 migration and lifecycle tests passed, plus 42 daemon-contract tests and seven wake-policy tests. Typechecks passed for app, CLI, server, host daemon, SDK, and daemon contract. Migration RPCs explicitly preserve the new no-incidental-wake policy.
Latest UI and copy changes: 53 tests passed across
MachinesSettingsSection,MoveServerDialog,ServerMoveOverlay, and the server move checklist, run through Turbo with@bb/appand@bb/serverfilters. The app build passed. Checked the information-notice layout in Chromium at desktop and 390px widths.Earlier branch verification included packaged A → B → A transfers on one Linux host, cancellation and process-interruption cases, database row-count comparisons, and attachment SHA-256 checks with approximately 161 MB of test attachments.
Prepared two Ubuntu VMs with systemd services, paired the source with a separate bb connect endpoint, and enrolled the target through it. Seeded 1,202 threads and 402,182 events into a 498 MB database, retaining 161 MB of attachments. Integrity and foreign-key checks passed, a seeded timeline loaded, both machines connected, and move preflight passed.
The large-fixture migration through production bb connect completed between the Ubuntu VMs. Verified the new server role, both machines connected, matching content hashes for 1,202 threads, 402,182 events, 14 projects and the queued message, and matching hashes for all eight attachments (160 MiB). Database integrity and foreign-key checks passed; a migrated timeline and the public version endpoint responded successfully. Reboot persistence, native desktop/mobile reconnection, and launchd handoff still need manual verification.
Known gaps: no UI recovery command for direct-address machines that remain offline and cannot reach the old server; uninstall protection for the provider plugin managing the server machine is not implemented. Export/import are CLI and SDK only. Direct HTTP transfers are unencrypted and the checklist warns about this.