You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pair: guard the already-paired re-scan (no-op same Mac, confirm replace)
The /pair modal is unguarded and opens over the drawer when already
paired, but its copy + action were identical to a first pair — so a
re-scan silently overwrote the single daemon slot with no "replace"
wording, and re-scanning the SAME Mac needlessly tore down a healthy
transport to rebuild an identical record.
Branch on the current pairing (V0 is single-daemon):
- same daemon (pubkey match) → "Already paired" + Close; skip pair()
so a healthy connection isn't rebuilt for nothing
- different daemon → "Replace <current>?" with a red destructive confirm
that spells out the disconnect
- unpaired → unchanged first-pair flow
primaryAction gains an optional tint (red for Replace); pair()'s
transport swap was already clean, so this is UX-only.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments