t3code icon indicating copy to clipboard operation
t3code copied to clipboard

Bug: T3 Connect and Publish agent activity omit WSL chats and activity

Open tbcarver opened this issue 2 months ago • 3 comments

Summary

When using T3 Code on Windows with the WSL backend enabled, T3 Connect and Publish agent activity appear to expose only the Windows environment. WSL chats and agent activity are not available from other connected devices.

There is also no clear documented way to separately connect to or publish activity from the WSL backend.

Environment

  • OS: Windows
  • T3 Code: 0.0.42
  • WSL distro: Ubuntu-22.04
  • T3 Connect: Enabled
  • Publish agent activity: Enabled
  • WSL backend: Enabled

Steps to reproduce

  1. Enable the WSL backend in Settings → Connections.
  2. Enable T3 Connect.
  3. Enable Publish agent activity.
  4. Start a chat using the WSL backend.
  5. Connect from another T3 Code client or device.
  6. Observe that Windows chats/activity are visible, but WSL chats/activity are missing.

Expected behavior

WSL should either:

  1. Be included in the Windows environment's T3 Connect and agent-activity feed, or
  2. Appear as a separately connectable/publishable environment with clear setup instructions.

Actual behavior

  • Windows chats are available remotely.
  • WSL chats are not available remotely.
  • WSL activity is not included in published agent activity.
  • The Connections UI does not provide an obvious way to separately expose or pair with the WSL backend.
  • Existing documentation does not explain this limitation or provide a workaround.

Impact

Users can work with WSL locally but cannot reliably continue or monitor those chats from another connected device.

Related issue

This appears related to #671 (first-class remote backend targets with WSL): https://github.com/pingdotgg/t3code/issues/671

Supporting screenshot

The screenshot shows WSL backend, T3 Connect, and Publish agent activity enabled in Settings → Connections, while WSL activity remains unavailable remotely.

tbcarver avatar Sep 22 '26 10:09 tbcarver

Triage

Verdict: Confirmed on v0.0.42 and current main. Keep open. Not a flaky relay bug, and not a duplicate of #671.

In dual-mode Windows + WSL (WSL backend on, WSL only off), T3 Connect and Publish agent activity only cover the primary (Windows) environment. The parallel WSL backend is a separate environment process with its own home/~/.t3 and environment id, and the Connections UI never links it. Remote clients therefore see Windows chats/activity and miss WSL ones. That matches this report.

What the code does

  • Dual-mode registers WSL as a secondary pool instance (wsl:default / wsl:<distro>). WSL-only makes WSL the primary instead (DesktopWslBackend.ts; secondary is skipped when wslOnly).
  • WSL deliberately omits t3Home so it does not share the Windows SQLite identity (DesktopBackendConfiguration.ts).
  • useCloudLinkController is explicitly primary-only: “Drives the primary environment’s T3 Connect link.” Preferences / publish go through updatePrimaryEnvironmentPreferences.
  • Connections mounts a single <CloudLinkRow /> under This machine, and filters desktop-local WSL targets out of the Environments list (“managed from the WSL row… no row of its own”) — ConnectionsSettings.tsx.
  • Agent activity publish is gated per server process (cloud-publish-agent-activity + relay credentials). Enabling publish in Settings does not configure the WSL server’s secrets, so WSL activity never reaches the relay feed.
  • Dual-mode WSL is not given LAN / Connect exposure the way the primary is; the primary owns that surface.

So option (1) in the report (fold WSL into the Windows Connect feed) and option (2) (first-class separately linkable WSL) are both unimplemented product work, not a broken toggle.

Related, not a duplicate

Issue / PR Why it is different
#671 (closed) Architecture proposal for first-class remote backend targets. Parallel local WSL landed later; Connect-for-secondary did not.
#2751 (merged) Shipped dual backends + WSL only, and made the WSL Connections row read-only for Connect/Disconnect/Remove. Local dual-backend, not remote Connect for the secondary.
Nightlies after 0.0.42 No change found that links dual-mode WSL into T3 Connect or publish.

Workaround

If WSL must be the remote / publish target: enable WSL only under Settings → Connections (restarts; WSL becomes primary). Then T3 Connect + Publish agent activity attach to WSL. Cost: the Windows backend is no longer the primary local environment.

If both backends must stay local side-by-side, there is currently no supported way to expose WSL chats/activity over T3 Connect.

Docs gap

docs/user/remote-access.md and docs/user/mobile-notifications.md say Connect/publish apply to “that environment” / “your environment,” but never state that dual-mode WSL is omitted. That is why this feels like a bug rather than an intentional mode limit.

Next step

Keep open as a real dual-backend Connect gap:

  1. Short term: document that Connect/Publish apply to the primary backend only, and point dual-mode users at WSL only when WSL must be remote.
  2. Longer term: allow linking secondary desktop-local backends (or auto-link every local pool instance) with clear per-environment Connect/publish controls. Relay already keys links by environmentId; the missing work is desktop/web link UX and exposure policy for the secondary.

juliusmarminge avatar Sep 22 '26 10:09 juliusmarminge

Any update on this one?

p-delorme avatar Oct 16 '26 01:10 p-delorme

The workaround statement: If both backends must stay local side-by-side, there is currently no supported way to expose WSL chats/activity over T3 Connect

Isn't correct. I've been using them both without issue by disabling the wsl feature and then installing T3 Server on wsl as if it was just another linux server and then using tailscale without any issues.

So there is a workaround to get full functionality, just treat WSL as a separate Linux server.

This is the windows machine with WSL: Image

This is a separate machine with T3 Code: Image

tbcarver avatar Oct 16 '26 11:10 tbcarver