Repository navigation
Conversation
ApprovabilityVerdict: Would Approve Macroscope's review found this PR approvable — This is a focused client-runtime bug fix that only refines relay timeout and WebSocket diagnostics, preserves direct-route behavior, and adds targeted coverage. A remaining route-state edge case can misclassify some fallback timeouts, which is captured by the repository’s blocking correctness finding. Not approved because:
Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more. |
Dismissing prior approval to re-evaluate 07b5fc4
Dismissing prior approval to re-evaluate 4e701ad
| if (establishment._tag === "TimedOut") { | ||
| const preparedConnection = yield* SubscriptionRef.get(prepared); | ||
| const detail = | ||
| Option.isSome(preparedConnection) && |
There was a problem hiding this comment.
🟡 Medium connection/supervisor.ts:716
A timeout while a later route is stalled can report that T3 Connect accepted the request even though only an earlier route reached preparation. connectOverRoutes leaves prepared set to that earlier route, so this branch misclassifies the timeout (and can likewise suppress the DNS hint); clear or track preparation per route before classifying it.
🤖 Copy this AI Prompt to have your agent fix this:
In file @packages/client-runtime/src/connection/supervisor.ts around line 716:
A timeout while a later route is stalled can report that T3 Connect accepted the request even though only an earlier route reached preparation. `connectOverRoutes` leaves `prepared` set to that earlier route, so this branch misclassifies the timeout (and can likewise suppress the DNS hint); clear or track preparation per route before classifying it.
|
Note Written by Thanks for investigating the T3 Connect failure. This PR changes the connection-error copy and selects different hints after route preparation, but does not repair the failed connection. Right now we are only taking focused bug fixes from outside contributors because of our limited review capacity, as explained in Read this first. Please preserve the reproduction in issue #14264 and propose a contained fix for the connection failure for reconsideration. |
Problem
On iOS with Wi-Fi Assist (Connectivity Assist on iOS 27) on, every T3 Connect environment loops on "did not respond during connection setup. Your DNS or firewall may be blocking T3 Connect. Try another network, such as a phone hotspot." The credential, ticket, and descriptor requests all succeed; only the WebSocket never reaches the host. The hint blames DNS, a firewall, or the host, and the hotspot suggestion points at the cellular path Assist already used.
Fixes #14264
Change
When a relay setup timeout happens after the ticket and descriptor succeeded, the supervisor now says the environment "did not finish connection setup after T3 Connect accepted the request" and suggests Wi-Fi Assist, a VPN, or a content filter blocking the WebSocket. Timeouts before that point keep the DNS/firewall hint. WebSocket failures in the RPC session use the same WebSocket hint. The hint follows the prepared route, including T3 Connect fallback after a direct route fails. Prepared direct connections keep the direct timeout message. The shared client runtime covers web, desktop, and mobile.
Scope and approval
Replaces #14508, which was closed for missing UI verification. Julius triaged the issue and described this copy change: #14264 (comment)
Verification
mainit fails and shows the exact message from the issue. With this change it passes..t3). A temporary, uncommitted harness registered a T3 Connect environment named "Paul's Mac Mini" and made the relay broker return a prepared connection whose socket points at a blackholed address (ws://10.255.255.1/ws). That matches the issue: the HTTP steps succeed and the WebSocket never opens. Screenshots hover the row to show the full message.Before (
main): the issue's exact DNS/firewall/hotspot message.After: the message no longer blames DNS or suggests a hotspot. It names Wi-Fi Assist, a VPN, or a content filter.
client-runtimemessage.Created with Claude Opus 5.5 in Claude Code (T3 Code). Merge maintenance by GPT-6-Astra via the Codex harness in T3 Code.