[Bug]: T3 Connect fails to establish a Cloudflare tunnel and intermittently times out during environment linking
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- macos, typescript
- Lĩnh vực
- desktop, networking
Hướng nghiên cứu
Start in the apps/desktop area named in the issue and trace the environment-link challenge request to https://relay.t3.codes/v1/client/environment-link-challenges, then inspect managed Cloudflare tunnel registration and its readiness diagnostics. Correlate the supplied trace IDs and timeout logs with relay and tunnel events. Done means environment linking completes and the tunnel registers with a reachable HTTPS endpoint; the root cause is still unknown, so this requires maintainer investigation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/desktop
Steps to reproduce
- Launch T3 Code Desktop (Beta v0.1.10) on macOS.
- Open Settings → Sharing & access.
- Keep Network access disabled.
- Enable T3 Connect.
- Wait for the managed Cloudflare tunnel to establish a connection.
- Repeat the test using a different network, such as a mobile hotspot.
The issue persists across multiple attempts, including home Wi-Fi and mobile data.
Expected behavior
T3 Connect should successfully link the local environment, establish the managed Cloudflare tunnel, and provide a reachable public HTTPS endpoint.
External MCP clients, including ChatGPT, should be able to connect to the environment through the /mcp endpoint using OAuth authentication, without requiring an additional third-party tunnel.
Actual behavior
T3 Connect fails at two different stages.
Scenario 1: Environment linking succeeds, but the Cloudflare tunnel fails to register
The UI displays:
"cloudflared has not connected to Cloudflare yet."
The managed connector repeatedly fails with registration timeouts. Local diagnostics recorded 34 connector starts, 31 registration timeouts, and zero successful registrations. The connector readiness endpoint returns HTTP 503 with readyConnections=0.
Scenario 2: Environment linking itself times out.
The request to https://relay.t3.codes/v1/client/environment-link-challenges fails with:
"Relay environment link challenge timed out. Your DNS or firewall may be blocking T3 Connect."
The issue has been reproduced across home Wi-Fi and a mobile hotspot. Changing DNS resolvers and VPN endpoints did not resolve it.
The local MCP server and OAuth discovery endpoints work correctly. As a temporary workaround, OpenAI Secure MCP Tunnel successfully connects ChatGPT to the same local T3 Code instance.
The precise root cause remains unknown.
Impact
Major degradation or frequent failure
Version or commit
T3 Code Beta v0.1.10
Environment
macOS 15.7.8 (arm64), Apple Silicon M1 Pro, T3 Code Desktop Beta v0.1.10, managed cloudflared v2026.10.4. Network access disabled. Local MCP server: 127.0.0.1:3773. Tested on home Wi-Fi, mobile hotspot, and multiple VPN endpoints.
Logs or stack traces
Sanitized diagnostic timeline — November 19, 2026 (UTC):
14:51:38 — Environment linking and local activation succeeded on the home network.
14:51:43 — Cloudflare tunnel registration failed:
Register tunnel error from server side: context deadline exceeded
By 15:05:14:
- Connector starts: 34
- Registration timeouts: 31
- Successful registrations: 0
- Connector readiness: HTTP 503
- readyConnections: 0
15:11:49–15:12:12 — Another environment activation succeeded, but tunnel registration failed again. Network used for this particular attempt was not confirmed.
Subsequent environment-link challenge requests timed out:
POST https://relay.t3.codes/v1/client/environment-link-challenges
15:12:38.784 UTC
Duration: 10.110 s
Trace ID: c2d27a9b32f0ee0cba2510647c41fc04
15:12:59.581 UTC
Duration: 10.009 s
Trace ID: 878fb6dba9b1cc9670950d4f9b3382c1
15:13:18.815 UTC
Duration: 10.007 s
Trace ID: 867e2b188b89c49f777806c8bb3d17de
Additional diagnostic results:
- DNS SRV resolution: successful during the latest tests
- TCP port 7844: reachable
- TLS 1.3 connectivity to Cloudflare edge: successful during the latest standalone tests
- Local MCP endpoint: HTTP 401 (authentication required, as expected)
- OAuth discovery endpoints: HTTP 200
- No successful "Registered tunnel connection" events observed
Could the maintainers check whether the relay received the challenge requests associated with these trace IDs and correlate the registration timeouts with the managed tunnel's edge events?
Thank you for your help.
Screenshots, recordings, or supporting files
Снимок экрана 2026-11-19 в 19.12.10.png
Снимок экрана 2026-11-19 в 19.12.44.png
Снимок экрана 2026-11-19 в 19.12.07.png
Снимок экрана 2026-11-19 в 19.13.23.png
Workaround
OpenAI Secure MCP Tunnel works successfully with the same local T3 Code MCP server.
ChatGPT can authenticate via OAuth, retrieve project information, send tasks to agents, and receive their results.
However, this workaround requires a separate tunnel-client process, an OpenAI API key, and additional startup configuration. Native T3 Connect would be preferable.
- Ngôn ngữ chính
- TypeScript
- Star
- 24.8k
- Fork
- 6.4k
- Merge trung bình
- 4 giờ 29 phút
- Pull request đã merge (30 ngày)
- 488
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pingdotgg/t3code
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
needs more info
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pingdotgg/t3code#39400 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Wrapped PR titles lose bottom padding in the thread details panelCó thể đã có người làm @iamdatvt94 đã nhận 1 ngày trước. Đang mởbug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pingdotgg/t3code
Issue tương tự
-
area:plugins kind:bug priority:p2 ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Escaped `*` followed by `*` (`\**`) never matchesCó thể đã có người làm @bardrop đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 71/100
editorconfig/editorconfig-core-js#172 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
vega/vega-webgpu#40 ·
-
Adjust break point sizingĐang mởtype: bug 🐛
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
puckeditor/puck#1929 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
compression() compresses every response at Brotli quality 11Có thể đã có người làm @staylor đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày