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.onLine stayed true, so the app never showed its offline state.
Change#
ManagedRelayClient.checkReachable sends a GET to the relay's public /health endpoint 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.checkRelay exposes that check to the supervisor.
- When a setup attempt on an environment with a T3 Connect route times out, the supervisor runs the check and picks the message:
- Relay unreachable: "This device could not reach T3 Connect. Check your internet connection. Your DNS or firewall may be blocking T3 Connect. Try another network, such as a phone hotspot."
- Relay reachable: " did not respond during connection setup. It may be asleep or offline, or its network may be blocking T3 Connect."
- Environments without a T3 Connect route keep the old message, with no extra request.
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 run on the touched suites (supervisor, managedRelay, registry, discovery, managedRelayState, authorization layer): 163 passed. New tests cover:
- supervisor: a stalled relay setup this device can reach blames the environment, and one it cannot reach blames this device's network.
- managedRelay: a 503 counts as reachable, while a failed fetch and a stalled request don't.
tsc --noEmit for packages/client-runtime, apps/web, and apps/mobile: clean.
vp lint and vp fmt --check on the changed files: clean.
- Not checked in a real client. I didn't reproduce a live Wi-Fi drop against the production relay.
Made with Claude Opus 5.5 in Claude Code (T3 Code).
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
f509e0c5-5e31-4535-9bd3-90b8306f94b5📥 Commits
Reviewing files that changed from the base of the PR and between a0a0e94822a0c675fbe0792ef94ff218101aeb66 and 5f23f76083eaa8f2a9d5ecf847c7da3b868419cb.
📒 Files selected for processing (9)
packages/client-runtime/src/authorization/layer.test.tspackages/client-runtime/src/connection/driver.tspackages/client-runtime/src/connection/registry.test.tspackages/client-runtime/src/connection/supervisor.test.tspackages/client-runtime/src/connection/supervisor.tspackages/client-runtime/src/relay/discovery.test.tspackages/client-runtime/src/relay/managedRelay.test.tspackages/client-runtime/src/relay/managedRelay.tspackages/client-runtime/src/relay/managedRelayState.test.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough#
The managed relay client now reports relay reachability. The connection driver exposes this check, and the supervisor uses its result to choose setup-timeout details.
Changes#
Relay Timeout Diagnostics
packages/client-runtime/src/relay/managedRelay.ts,packages/client-runtime/src/relay/managedRelay.test.ts,packages/client-runtime/src/relay/discovery.test.ts,packages/client-runtime/src/relay/managedRelayState.test.ts,packages/client-runtime/src/authorization/layer.test.tsManagedRelayClientchecks the health endpoint with a 2,500 ms timeout. Any HTTP response counts as reachable; a timeout or failure returnsfalse. Test clients implement the new check.packages/client-runtime/src/connection/driver.ts,packages/client-runtime/src/connection/registry.test.tscheckRelaythroughManagedRelayClient.checkReachable. The driver test mock implements the new operation.packages/client-runtime/src/connection/supervisor.ts,packages/client-runtime/src/connection/supervisor.test.tsNETWORK_BLOCKING_HINT; a reachable relay produces an environment-related message.Priority: ⬇️ Low
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix · Severity of issue fixed: Low
Sequence Diagram(s)#
Suggested reviewers:
juliusmarmingeMerge Risk
Merge Risk: ⚪ Minimal · up to
5f23fThis changes only the text of setup-timeout messages when a T3 Connect relay is involved. Connection and retry behavior stay the same. Real-client behavior was not checked, but no merge-blocking risk is evident.
Security Architecture Review
Security architecture risk: 🔵 Low · up to
5f23fThe new check is bounded and selects diagnostic text rather than granting access or changing authentication. Existing connection cleanup remains in place. Risk is low, with uncertainty about platform-specific redirects and ambient credentials, and a short additional delay before timeout-state convergence.
Retained concerns No architecture-level concerns identified.
Security review details
Security Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Pre-merge checks |
4
✅ Passed checks (4 passed)
#17629, reports focused test results, and states …#17629is directly linked and has coding requirements. The change addsManagedRelayClient.checkReachablewith a 2,500 ms health request. Any HTTP response returns reachable. Transport failures…#17629. Production changes implement relay reachability, driver wiring, and setup-timeout message selection. Test-harness updates and new tests support this behavior. The…✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands.