Repository navigation
Description
Area
apps/server (CLI / linked environments setup)
Problem
Setting up a Windows desktop to link to a headless Ubuntu VPS reaches a remote feature-gate rejection after networking and pairing setup. The error directs the user to Settings > Labs on the remote machine, but does not explain how to reach that UI on a headless deployment or provide a CLI remediation. Please improve the linking preflight/setup guidance for the requirement on both environments.
This report does not claim that rejecting a link while the feature is disabled is an authorization bug. The problem is the setup experience and recovery guidance.
Steps to reproduce / observed setup
- Install T3 Code on a Windows PC and an Ubuntu VPS (v0.1.9).
- Run the VPS backend on port 3773, expose it using Tailscale Serve HTTPS, and generate a pairing code with
t3 pair. - Enable Linked environments on the initiating environment, while leaving it disabled on the VPS.
- On the Windows PC, attempt
t3 environment link https://<vps>.<tailnet>.ts.net:8443and complete the pairing flow. - The remote environment refuses registration with the error below.
The user's latest error is quoted verbatim below; this final refusal was user-reported rather than independently reproduced by the troubleshooting agent.
Expected behavior
The setup flow should explain up front that Linked environments must be enabled on both machines. When the remote setting is off, provide actionable headless instructions: a supported CLI command if available, or the exact remote UI address and how to authenticate and reach Settings > Labs. Do not silently enable the feature.
Actual behavior / logs
PeerLinkError: The peer refused to register this environment: Linked environments is off on that machine. Turn it on in its Settings → Labs.
An earlier attempt on the VPS itself produced:
PeerLinkError: Linked environments is off on this machine. Turn it on in Settings → Labs.
Networking checks and earlier setup obstacles
- Initially T3's Tailscale Serve setup timed out after 10 seconds (
TailscaleCommandTimeoutError, localPort 3773, servePort 443). - Port 443 was already occupied by a Docker-published service. A request returned an unrelated certificate, causing curl error 60. This was a deployment port conflict, not established as a T3 certificate bug.
- Configured
tailscale serve --bg --https=8443 http://127.0.0.1:3773instead. - Independently verified valid HTTPS and HTTP 200 at the resulting URL from both the Ubuntu VPS and the Windows PC. Certificate verification was not disabled.
- The remaining reported failure is the remote Linked environments feature gate, not HTTPS reachability.
Impact
Blocks this Windows-to-VPS linking setup until the user discovers how to enable the remote setting.
Version or commit
T3 Code v0.1.9 (Windows CLI checked locally; VPS version shown in supplied stack trace).
Environment
Windows desktop + PowerShell / OpenSSH client; Ubuntu headless VPS; Tailscale Serve; VPS Tailscale 1.104.7. Both devices are on the same tailnet.
Workaround
The error directs the user to enable Settings > Labs > Linked environments on the VPS. Suggested path: open the VPS HTTPS URL in a browser, authenticate using a VPS pairing code, and enable the remote setting before retrying the link from Windows. This workaround has not yet been confirmed by the user.
Related
#30358 concerns orchestration instructions advertising tools hidden by the disabled feature. This report concerns CLI/headless setup guidance when the receiving peer has the feature disabled.
Filed on behalf of the affected user with their explicit request. Public addresses, account details, and pairing secrets omitted.
Activity
cyppe commentedon Nov 15, 2026
A remediation that works on a headless server today: the Labs switch is the server setting
linkedEnvironmentsEnabled(packages/contracts/src/settings.ts), so a headless machine can turn it on in the server's settings file before it starts, with no browser.Checked on
0.1.10-nightly.20261113.4643(linux-x64 release,t3 serveunder systemd). With the file in place,t3 environment link http://127.0.0.1:<port> --pairing-code <code> --access full-accessfrom the desktop succeeded. Threads,delegate_taskand scheduled tasks then ran on the headless side. If the file already exists, add the key rather than replacing the file.#36979 explains the
t3 pairand browser route; this file route may be worth a line next to it in the same guide.Checked by Claude Opus 5.5, in Claude Code.