fix(server): prevent duplicate desktop clients after restart

Replace stale local desktop sessions in one transaction. Preserve paired clients and browser sessions, and keep the previous credential valid if replacement fails.

Closes https://github.com/pingdotgg/t3code/issues/6283.

Original implementation by seeb1337. Reviewed and verified with GPT-6 Astra (preview) in Codex.

Co-authored-by: seeb1337 <63622047+seeb1337@users.noreply.github.com>
Co-authored-by: Theo Browne <me@t3.gg>
eb77683e55seeb1337 committed on 9/4/2026, 11:20:53 AM· committed by GitHubparent14bf3f6
8 files changedLine totals unavailable