Repository navigation
Conversation
2 tasks done
Owner
Author
|
Upstream bug: pingdotgg#40666 |
NorthIsUp
force-pushed
the
fix/mobile-pair-app-link
branch
from
November 22, 2026 05:19
6021bc9 to
8e4f89c
Compare
t3 pair in the Add environment form
…onment form `t3 pair` prints a `t3code://pair?pairingUrl=…` app link. Desktop handles it; the mobile app has no `pair` route, so a release build opens NotFound. The link path now rewrites to `connections/new?pairingUrl=…`, and release builds honor that prefill. The user sees the host and code and taps Connect, the same trust as the in-app QR scanner, which already fills the form from any scanned payload. Dev auto-connect stays dev-only, and link params other than the pairing URL are dropped, so `routeFor` still can't come from a link. Co-Authored-By: Claude Opus 5.5 <[email protected]>
NorthIsUp
force-pushed
the
fix/mobile-pair-app-link
branch
from
November 22, 2026 06:21
8e4f89c to
830d0cd
Compare
Thread transfer impact
This comment will update automatically after the next completed run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
t3 pairprintsApp link: t3code://pair?pairingUrl=…. The desktop app handles that link. The mobile app registers thet3codeschemes but has nopairroute, so a release build opens NotFound.This rewrites the link's path to
connections/new?pairingUrl=…ingetAppStateFromPathand lets release builds honor that prefill. The Add environment form opens with the host and code filled in, and the user taps Connect. Pairing, errors, haptics and the exit all come from the form's existinghandleSubmit.The trust stays the same as today: the in-app QR scanner already fills this form from any scanned payload, including this exact
t3code://pairformat. That's why the__DEV__prefill gate can go. Dev auto-connect stays dev-only. Only the pairing URL survives the rewrite, so a link still can't setrouteFor(andwithoutPairingTargetstrips it anyway). A link that arrives while the form is open replaces its contents viapairingFormLinkAction. Desktop asks a direct "Add the backend at X?" question; here the filled-in form, which shows the scheme in the host, is the question.How I checked it:
appLinking.test.ts: the rewrite, the leading-slash path, extra params being dropped, and other links left alone.ConnectionsNewRouteScreen.test.tsx: a release build (__DEV__false) fills host and code frompairingUrland doesn't connect. This test fails with the old gate.pnpm run check:changedpasses on Node 26.13.1.Not yet done:
🤖 Generated with Claude Code