t3code
t3code copied to clipboard
[Bug]: Update-all always skips WSL-backend machines as "needs a newer desktop app"
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/desktop
Steps to reproduce
- On machine B (Windows), run the T3 Code desktop app with the WSL backend enabled.
- Connect to machine B from another T3 Code client as a saved environment.
- When B is behind the latest release, open "Update all" (sidebar update button) on the client.
Expected behavior
Machine B is updated, or listed as skipped with a reason that matches its actual state.
Actual behavior
Machine B is always listed as skipped with "needs a newer desktop app", even when its desktop app is current. Reproduced on multiple recent nightlies.
Cause (from reading the source on main):
- The skip fires for a desktop-managed server that does not advertise capabilities.desktopAppUpdate (apps/web/src/components/sidebar/updateEverything.logic.ts:111-113). It does not compare app versions.
- The server only advertises desktopAppUpdate when it received desktopTelemetryControlFd (apps/server/src/environment/ServerEnvironment.ts:206-207).
- The Windows backend gets that fd (apps/desktop/src/backend/DesktopBackendConfiguration.ts:513). The WSL backend bootstrap does not (DesktopBackendConfiguration.ts:571-583), because wsl.exe drops extra fds and the bootstrap goes over stdin (DesktopBackendManager.ts:456).
- The WSL server still runs with mode: "desktop", so it is treated as desktop-managed.
Result: a WSL backend can never report desktopAppUpdate, so whenever it is behind, the dialog skips it with a reason that blames the desktop app version.
Write-up by Opus 5.5
Impact
Minor bug or occasional failure
Version or commit
main
Environment
Skipped machine: Windows 11, T3 Code desktop app, WSL backend (26.04 Ubuntu)
Logs or stack traces
Screenshots, recordings, or supporting files
No response
Workaround
Update the desktop app and WSL backend locally on the WSL-machine.