You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: t3 connect link tells users to run t3 serve even when the background service or server is already running #42893
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
Install and start the T3 Code background service locally without T3 Connect enabled (for example t3 service install, or t3 up --no-connect --no-lan). Confirm the server is already running on 127.0.0.1:3773.
Run t3 connect link in a terminal and complete browser authorization.
Observe the Next command printed at the end of t3 connect link.
Expected behavior
When an installed background service (or live T3 server for the same --base-dir) is already running, t3 connect link should instruct the user to restart it (for example t3 service restart, matching the wording in t3 connect status and t3 connect publish) rather than starting a second foreground t3 serve instance.
Actual behavior
connectLinkCommand in apps/server/src/cli/connect.ts unconditionally resolves resolveHostCliHint("serve", flags.baseDir) and prints:
✓ Authorized as <account>
Next
Start the server with `/path/to/t3 serve` to make this machine reachable.
If the background service is already running on port 3773, running that t3 serve command collides with the running server while the background service stays at Environment link: pending server startup until restarted via t3 service restart (or the OS service manager).
Impact
Minor bug or occasional failure
Version or commit
t3 v0.1.11 (also verified in apps/server/src/cli/connect.ts on main @ aacdaba1)
Environment
Ubuntu Linux x86_64, systemd user service (t3code.service), cloudflared 2026.10.4
Logs or stack traces
✓ Authorized as <redacted>
Next
Start the server with `/path/to/t3 serve` to make this machine reachable.
Immediately afterward, t3 connect status reports:
T3 Connect
Exposure: enabled
Authorization: stored credential
Environment link: pending server startup
Relay: not provisioned
Workaround
Restart the running background service (t3 service restart or systemctl --user restart t3code.service) instead of running the printed t3 serve command, then verify with t3 connect status.
Activity
test(server): t3 connect link points a running server at restart, not…