Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: T3 Connect tunnel stays on Cloudflare error 1033 after macOS sleep/wake until the desktop app is quit and relaunched #30118

ClosedTommyBez(GitHub profile, opens in a new tab) opened this issue 2 comments

Before submitting

  • I searched existing issues. Related reports and the differences are linked below.

Area

Desktop app / T3 Connect relay tunnel (macOS)

Summary

After the Mac sleeps (lid closed) and wakes again, the T3 Connect public endpoint keeps returning Cloudflare error code: 1033 (tunnel not connected) and never recovers on its own. Remote clients cannot reach the environment until the T3 Code desktop app is fully quit (Cmd+Q) and reopened. After the relaunch the endpoint works again within a minute or two.

Observed (2026-11-03, times Europe/Rome, UTC+1)

  1. Earlier in the morning the Mac was offline. When it came back online (about 11:03), the endpoint still returned 1033 at 11:04 and 11:07. Relaunching the app at about 11:08 fixed it.
  2. Around 12:00 the Mac lid was closed (sleep). The endpoint returned 1033 at 12:01.
  3. The Mac was opened again at about 12:19. The endpoint was still on 1033 at 12:19, several minutes after wake.
  4. Quitting the app with Cmd+Q and reopening it (12:21) restored the endpoint by 12:22.

The same sequence happened twice in one morning, so for us it looks reproducible: sleep or network loss, then wake, then 1033 that lasts until the app restarts.

Side effect: agent runs that were in progress were interrupted by the sleep, and queued work could not resume remotely until the manual relaunch.

Expected

After wake (or when the network comes back), the desktop app should detect that the tunnel is down and restart or reconnect it automatically, without a manual quit and relaunch.

  • #19565 (closed): 1033 while cloudflared reported healthy connections, fixed by restarting only the helper. Here the trigger is sleep/wake or network loss, and it happened after that fix.
  • #25273: slow (15-27 s) relay reconnect after macOS wake. Here the tunnel does not come back at all, even after several minutes.
  • #5744: native clients time out after a host Mac restart. That one is about a restart, not sleep/wake.

Environment

  • macOS, Apple Silicon, T3 Code desktop app with T3 Connect relay enabled.
  • Exact T3 Code and cloudflared versions not captured yet. I can add them, plus logs from the next occurrence, if that helps.
  1. juliusmarminge added labelsneeds more info

  2. Tried this on main (cefb544af3) on Linux, with the cloudflared release T3 Code pins (2026.10.4) and a real Cloudflare tunnel:

    • Froze cloudflared for 4 minutes, as a sleep does. The public endpoint returned 530 meanwhile. After resuming, cloudflared logged timeout: no recent network activity, re-registered within 6 s, and the endpoint answered 200 again.
    • Froze it with the network down, resumed it while still offline, and restored the network 40 s later. cloudflared retried every 32 s or sooner and re-registered 12 s after the network came back.

    So a connector that loses its connections over a sleep normally recovers by itself, and neither run reproduced a 1033 that lasts. What differs on your Mac should be in the tunnel log. A lasting 1033 usually means one of two things: cloudflared still reports ready connections while Cloudflare has none, or it never reconnects after wake.

    Next time it happens, before you quit the app, could you add:

    • The T3 Code version (and whether it's Stable or Nightly).
    • The text from Copy diagnostics in the environment's Details on the remote client, or the output of t3 connect status on the Mac, taken while the endpoint returns 1033.
    • relay-client.ndjson from ~/.t3/userdata/logs on the Mac, covering from before the sleep through the relaunch. The tunnel token is already removed from it.
    • Roughly how long after wake you checked the endpoint.
  3. github-actions[bot](GitHub profile, opens in a new tab) removed labelsneeds more info

  4. [Fable 5.2][Claude Code] on behalf of shivam.

    Closing this as not planned for now. It did not reproduce on main at cefb544af3 on 2026-11-03 with cloudflared 2026.10.4 and a real tunnel. After a 4 minute freeze, and after a network drop, the connector registered again within seconds.

    If it still happens on a current build, please reply here with the details asked for above and we'll reopen it.

Sign in to join this conversation.