Repository navigation
fix(sync): tell a removed device over the LAN and name installs after the computer - #663
Merged
A-EDev merged 6 commits intoNov 19, 2026
Conversation
Co-authored-by: Captain-Vikram <vighneshkontham@gmail.com>
Co-authored-by: Captain-Vikram <vighneshkontham@gmail.com>
Co-authored-by: Captain-Vikram <vighneshkontham@gmail.com>
Co-authored-by: Captain-Vikram <vighneshkontham@gmail.com>
This was referenced Nov 19, 2026
Merged
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.
Summary
keyandgetanswer not found,listanswers an empty listing,putis refused and live messages are dropped. The desktop pulls nothing from it and doesn't keep its address.stop_if_shut_out) without waiting for objects.HeldStore::hold_entryreports whether the entry was new, andMetcarries the count.gethostname(already in the dependency tree), e.g.Flow Desktop (MY-PC - Windows), withDevadded in debug builds.v0.1.0-beta5.txt.Related issue
Part of #662
Change type
Validation
Run on macOS (Apple Silicon) on the branch tip with main merged in.
pnpm test: 465 files, 2780 tests passedpnpm build: passedcargo fmt --manifest-path src-tauri/Cargo.toml --all -- --check: cleancargo clippy --manifest-path src-tauri/Cargo.toml --all-targets --all-features: 0 errors, no warnings in the changed filescargo test --manifest-path src-tauri/Cargo.toml --all-targets --all-features: 1903 passed, 0 failed, 12 ignoredNew tests:
a_removed_device_learns_its_removal_over_lan_and_is_shut_out,a_removed_device_is_served_the_roster_and_nothing_else(fails if the removed peer is served like a member),a_member_opens_no_session_with_a_device_it_removedintests/sync2_lan.rs, anda_removed_peer_is_answered_with_nothing_but_the_rosterinlan_link.rs.Screenshots or recordings
Risk and compatibility
Network: a device this desktop removed can still complete the LAN hello under its old epoch and read the roster entries (device ids, public keys, sealed names). It gets no wraps, objects or live delivery. The spec allows this in docs(spec): let a member serve a removed device its roster over the LAN flow-sync#116.
Flow for Android does the same in fix(sync2): serve only the roster to a removed device on the LAN Flow#2215. Until it ships, a phone still refuses a removed peer, so a removed device learns of its removal only from an updated member.
The default device name is chosen once, when the sync identity is created, so existing installs keep their name. It now includes the computer's name, which other devices in the group see.
No migration or database schema change.
No new secrets, private data, telemetry, or broad Tauri permissions were introduced.
User-facing documentation was updated where needed.
Dependency and lockfile changes are intentional and limited to this PR.
Breaking changes and upgrade steps are clearly documented.