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
{{ message }}
Repository navigation
Pair a phone by address with computer approval (pairing window) #4976
After a phone enters a Host address, it can sign in with a username and password, but fingerprint pairing still needs the one-time pairing code shown on the computer. The Host refuses a pairing request without that code (offer-invalid). So a person at the computer has to open the code and scan it, even when they already typed the address.
Proposal: a short pairing window on the Host
While Connect a device to this Host is open on the computer (or for a few minutes after the Owner starts it), the Host accepts pairing requests that arrive by address alone.
The phone sends its public key and name through the existing encrypted channel. The computer lists the request with the phone's full fingerprint; the Owner compares it and approves. The phone waits, exactly as after scanning a code.
Outside the window the Host refuses address-only requests. Rate limits per IP and a small cap on pending requests keep the address from becoming a way to flood the Owner with approval prompts.
The discovery response gains a field telling the phone whether a pairing window is open, so the phone can offer "Approve on the computer" without first asking the person to scan.
Acceptance criteria
With the window open, entering the address and choosing "Approve on the computer" pairs after Owner approval on the computer; the fingerprints shown on both sides match.
With the window closed, an address-only request is refused and the phone explains how to open it.
Spam limits: rate limit, pending-request cap and window expiry are covered by Host tests.
deepseekbot CLI commands to open/close the window and list or approve these requests, per the CLI parity rule.
Team mode security suite passes at the PR head.
Notes
Phone-side chooser (username/password vs. approve on the computer) ships first in #4927; until this issue lands, "Approve on the computer" guides the person to open the pairing code on the computer and scan it.
Activity
Let people choose password sign-in or computer approval for an address