Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(client): explain possible network blocking for T3 Connect #9783

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/9783/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

T3 Connect showed a generic timeout when a network filter blocked its hostname. Users had no useful clue that switching networks could restore access.

Network failures and client-side timeouts now suggest checking DNS or firewall filtering and trying another network. The hint says "may" because these failures cannot confirm a block. Server-reported outages and authentication errors keep their specific explanations. Shared client code covers web, desktop, and mobile, and connection errors now wrap in web Settings.

Validation: 112 focused tests pass. Client-runtime typecheck passes. Targeted lint has one existing React Compiler warning in ConnectionsSettings.

Browser verification and screenshots were not run.

Created with GPT-6 Astra (preview) in Codex.


Note

Medium Risk User-visible connection error strings change across relay flows; tests and any string matchers must follow. Relay WebSocket messages with the appended hint may no longer match isTransportConnectionErrorMessage, so thread error sanitization could treat those as non-transport errors.

Overview When relay-based T3 Connect paths time out or fail at the network layer, users now see a shared hint that DNS or a firewall may be blocking access and that trying another network (e.g. a phone hotspot) can help. The hint is wired through managed relay requests, relay connection setup timeouts, RPC/WebSocket session failures, and remote environment descriptor fetches; direct connections keep the previous messages.

Managed relay failures only append the hint for true transport errors (Failed to fetch), not HTTP server errors like 503. Relay server-reported timeouts (e.g. environment endpoint timed out) and auth errors keep their existing, specific copy. Descriptor fetch error mapping now takes connection method so relay DPoP flows get the hint on fetch/timeout while bearer/direct paths stay unchanged.

In Connections settings, connection error text wraps instead of truncating so the longer messages stay readable.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit fba0e088134c8f3988bea93e88b6e172424e21f9. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Add network-blocking hints to relay connection errors and wrap error text in settings UI

  • Introduces a shared network-blocking diagnostic constant in network.ts that appends DNS/firewall filtering guidance and an alternate-network suggestion to relay-related errors
  • Threads the connection method (direct vs relay) through descriptor fetching in service.ts and the remote error mappers in errors.ts, so only relay timeouts and fetch failures receive the hint while direct errors stay unchanged
  • Appends the hint to relay setup timeouts in supervisor.ts, managed relay request timeouts and transport failures in managedRelay.ts, and RPC socket failures for relay sessions in session.ts; HTTP/server errors and non-socket RPC failures do not receive the hint
  • Fixes the SavedBackendListRow component in ConnectionsSettings.tsx so connection error text wraps onto multiple lines instead of being truncated
  • Risk: mapRemoteEnvironmentError now requires a connection-method argument (defaults to direct); any out-of-tree callers passing fewer args get the previous direct-connection behavior but should verify the default is correct
Macroscope summarized fba0e08.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. github-actions[bot](GitHub profile, opens in a new tab)commented

      Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire13.6 KiB13.8 KiB+169 B (+1.2%)15.1 KiB✅
      CodexThread snapshot wire7.0 KiB7.0 KiB−7 B (−0.1%)7.3 KiB✅
      CodexLive turn WebSocket wire6.6 KiB6.7 KiB+176 B (+2.6%)7.8 KiB✅
      CodexLive turn WebSocket decoded57.1 KiB58.5 KiB+1.4 KiB (+2.5%)66.4 KiB✅
      CodexLive turn messages10100 (0.0%)21✅
      ClaudeTotal thread wire13.6 KiB13.5 KiB−39 B (−0.3%)15.1 KiB✅
      ClaudeThread snapshot wire7.0 KiB7.0 KiB+2 B (+0.0%)7.3 KiB✅
      ClaudeLive turn WebSocket wire6.6 KiB6.5 KiB−41 B (−0.6%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded57.9 KiB57.8 KiB−44 B (−0.1%)66.4 KiB✅
      ClaudeLive turn messages109−1 (−10.0%)21✅

      Baseline: b7d6e65 · PR result: fba0e08 · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 113.8 KiB
      • Claude decoded thread snapshot: 114.5 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at fba0e08

      Macroscope's review found this PR approvable — The PR is limited to clearer relay connection failure messages and displaying those messages without truncation; connection behavior, retries, authentication, and defaults remain unchanged. The relay/direct distinction is localized and covered by focused tests, with no sensitive, infrastructure, or static-analysis configuration changes.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).

Sign in to join this conversation.