Skip to content

fix(updates): let re-paired desktops restore update control - #1353

Merged
nixuuu merged 3 commits into
devfrom
fix/app-updates-worker-status
Nov 27, 2026
Merged

nixuuu merged 3 commits into
devfrom
fix/app-updates-worker-status

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

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

  • Linux worker, revision b485d3056. Formatting and lint passed for the three edited TypeScript files. Commitlint and git diff --check passed.
  • GitHub CI runs the pinned TLS and PostgreSQL regression in the existing desktop updates integration suite, alongside the required repository checks.

Thanks to @marcinniewinski for reporting the mismatch and confirming the workaround.

Fixes: #70

@nixuuu
nixuuu enabled auto-merge (squash) November 27, 2026 17:14
@nixuuu
nixuuu disabled auto-merge November 27, 2026 17:16
@nixuuu
nixuuu enabled auto-merge (squash) November 27, 2026 17:19
@nixuuu
nixuuu disabled auto-merge November 27, 2026 17:21
@nixuuu
nixuuu enabled auto-merge (squash) November 27, 2026 17:22
@nixuuu
nixuuu merged commit 3b0ed5c into dev Nov 27, 2026
25 checks passed
@nixuuu
nixuuu deleted the fix/app-updates-worker-status branch November 27, 2026 17:28
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