Repository navigation
fix(updates): let re-paired desktops restore update control - #1353
Merged
Merged
Conversation
nixuuu
enabled auto-merge (squash)
November 27, 2026 17:14
nixuuu
disabled auto-merge
November 27, 2026 17:16
nixuuu
enabled auto-merge (squash)
November 27, 2026 17:19
nixuuu
disabled auto-merge
November 27, 2026 17:21
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 changed
Registered workers shows the WorkerLink connection and the registered worker version. App updates uses the desktop control stream and the most recent app report, matched by worker and device IDs. A new pairing could authenticate the same worker but fail to attach its updater while an older pairing still had device access, even after its stream ended.
Allow the new pairing to bind after it proves the same worker credential and the previous control stream is gone. An active stream keeps its binding. Rebinding starts with fresh update state and device access can still be revoked per entry.
The regression covers two pairings for one registered worker, recovery without revoking the old pairing, and fresh reports from current and older desktops after switching back to an earlier pairing. A transaction regression verifies that detecting a closed session before accepting the binding leaves the previous request intact.
Verification
b485d3056. Formatting and lint passed for the three edited TypeScript files. Commitlint andgit diff --checkpassed.Thanks to @marcinniewinski for reporting the mismatch and confirming the workaround.
Fixes: #70