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
[Bug]: Scanning a t3 pair QR with the phone camera pairs Safari instead of the T3 Code app #40611
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Related but different: #38442 (desktop sharing screen no longer offers t3code://app links) and #35358 / #30343 (scanning inside the mobile app's Add environment sheet connects right away). Neither covers scanning a t3 pair QR with the phone's own camera.
Area
apps/server (the t3 pair CLI output)
Steps to reproduce
On a Mac, with Tailscale HTTPS enabled, run t3 pair --tailscale.
On an iPhone that has the T3 Code app installed, scan the printed QR code with the built-in Camera app (not the scanner inside T3 Code).
Tap the banner the Camera app shows.
Expected behavior
The T3 Code mobile app opens and adds the environment. That's what most people who scan a "pair your phone" QR with their camera want.
Actual behavior
The QR code encodes the https://<machine>.<tailnet>.ts.net/pair#token=… URL, so iOS opens it in Safari. Safari spends the one-time token and becomes a paired client. t3 auth session list then shows client: iPhone | mobile | iOS | Safari with method: browser-session-cookie and the full default scope set (terminal, filesystem, source control and so on). The user has to revoke that session and mint a new code to pair the app.
t3 pair already prints an App link: t3code://pair?pairingUrl=… line, but the QR uses the https URL.
Possible fixes:
Encode the t3code://pair?... app link in the QR (or the https link as a universal link that opens the app when it is installed), or
add an option such as t3 pair --qr app|web, or
print a line under the QR such as "Scan from inside T3 Code (Add environment); a phone's camera app opens it in the browser."
Impact
Minor bug or occasional failure
Version or commit
t3 v0.1.11 (CLI bundled with the macOS desktop app)
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.
Activity
juliusmarminge commentedon Nov 21, 2026
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.