Skip to content

[Bug]: Scanning a t3 pair QR with the phone camera pairs Safari instead of the T3 Code app #40611

Closed as not planned

Description

@grub-404

Before submitting

  • 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

  1. On a Mac, with Tailscale HTTPS enabled, run t3 pair --tailscale.
  2. 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).
  3. 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)

Environment

macOS (Apple Silicon) host, Tailscale Serve HTTPS; iPhone, iOS Camera app → Safari

Activity

  1. juliusmarminge commented on Nov 21, 2026

    @juliusmarminge
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions