Before submitting#
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)#
- 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.
- Around 12:00 the Mac lid was closed (sleep). The endpoint returned 1033 at 12:01.
- The Mac was opened again at about 12:19. The endpoint was still on 1033 at 12:19, several minutes after wake.
- 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.
Related issues#
- #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.
Tried this on main (
cefb544af3) on Linux, with the cloudflared release T3 Code pins (2026.10.4) and a real Cloudflare tunnel:timeout: no recent network activity, re-registered within 6 s, and the endpoint answered 200 again.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:
t3 connect statuson the Mac, taken while the endpoint returns 1033.relay-client.ndjsonfrom~/.t3/userdata/logson the Mac, covering from before the sleep through the relaunch. The tunnel token is already removed from it.