Repository navigation
fix(client-runtime): T3 Connect setup timeouts say which side lost its network - #17630
josephv123 wants to merge 1 commit into
Conversation
…s network When a T3 Connect connection stalls during setup, check whether this device can reach the relay. If it cannot, say so and point at this device's internet connection instead of blaming the environment. Fixes pingdotgg#17629
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a small, well-tested client-runtime bug fix that improves timeout attribution without changing connection or retry behavior. The only added network activity is a bounded relay health check performed after a relay setup timeout. You can add or adjust custom eligibility rules. Learn more. |
|
Note Written by Thanks for investigating the misleading T3 Connect timeout message. The new relay probe chooses which network the message points to, but the description explicitly says it was not checked in a real client and provides no before/after UI evidence. Our verification rule requires evidence matching the changed behavior; please reproduce a client network drop against a healthy host and show the resulting diagnostics before requesting reconsideration. Please keep the underlying diagnosis problem in an issue so it remains available for maintainer work. |
Problem
When a T3 Connect connection times out during setup, the client always says " did not respond during connection setup. Your DNS or firewall may be blocking T3 Connect." It says this even when the client itself lost internet. In #17629 the remote host was healthy, with its tunnel registered and no errors, and the client's Wi-Fi had dropped. The message pointed at the wrong machine.
navigator.onLinestayedtrue, so the app never showed its offline state.Change
ManagedRelayClient.checkReachablesends a GET to the relay's public/healthendpoint with a 2.5 second timeout. Any HTTP response counts as reachable, because an unhealthy relay is still reachable. Only a transport failure or a timeout counts as unreachable.ConnectionDriver.checkRelayexposes that check to the supervisor.The check runs only after a setup timeout, so a healthy connection makes no extra requests. All of this lives in
client-runtime, so web, desktop, and mobile pick it up together.Scope and approval
Fixes #17629. This is a small fix to a misleading error. It changes no connection or retry behavior, only which message a setup timeout shows.
Verification
vp test runon the touched suites (supervisor, managedRelay, registry, discovery, managedRelayState, authorization layer): 163 passed. New tests cover:tsc --noEmitforpackages/client-runtime,apps/web, andapps/mobile: clean.vp lintandvp fmt --checkon the changed files: clean.Made with Claude Opus 5.5 in Claude Code (T3 Code).