Skip to content

fix(desktop): distinguish pairing from first gateway contact - #1249

Merged
nixuuu merged 2 commits into
devfrom
fix/gateway-repairing-status
Nov 24, 2026
Merged

nixuuu merged 2 commits into
devfrom
fix/gateway-repairing-status

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Record a desktop app's first contact when it first uses the issued credential. Fresh and replacement invitations both create an entry that initially shows “Not connected yet”.
  • Publish the first contact to Devices and keep “Last seen” as a historical timestamp. Remote Desktop pairing grants access to the chosen gateway. Linked computers come from a separate link between local desktop gateways.
  • Thanks to @marcinniewinski for reporting the re-pairing scenario.

The previous Devices state was reproduced locally before the fix. The report also shows a registered Windows worker as disconnected. A paired Desktop can read the live gateway while a registered worker is offline. The Windows worker's reason for being offline remains unconfirmed.

Verification

Local Linux verification of 02044f9 passed 13 focused integration checks. These covered new and replacement desktop credentials, revocation, restart, pinned route recovery, gateway and client version negotiation, phone pairing, and linking and re-linking two gateways. Targeted lint, formatting and diff checks passed.

In Chromium on the same revision, both desktop invitations showed acceptance followed by “Not connected yet” and then “Last seen” as the new credential was used. The authenticated Desktop read a live overview that included a registered offline worker. The message fit at the standard dialog width and with the dialog constrained to 350 px. GitHub CI runs the full gate.

Copy audit

“Device paired.” becomes “Desktop app invitation accepted” with a sentence directing users to Device access. The confirmation names the event the gateway observed. The visible text gives the next step without relying on the status icon or color.

Fixes: #68

@nixuuu
nixuuu enabled auto-merge (squash) November 24, 2026 19:18
@nixuuu
nixuuu disabled auto-merge November 24, 2026 19:26
@nixuuu
nixuuu enabled auto-merge (squash) November 24, 2026 19:30
@nixuuu
nixuuu merged commit d0e8cbb into dev Nov 24, 2026
21 checks passed
@nixuuu
nixuuu deleted the fix/gateway-repairing-status branch November 24, 2026 19:40
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