feat(desktop): allow disabling the local environment (#9194)
Co-authored-by: Claude Code <[email protected]> Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
41 files changed
+794
-139
No files matched your search
@@ -57,3 +57,15 @@ capabilities and handle their absence, rather than assume their own version
|
||||
describes the server. Process replacement belongs to the launcher's
|
||||
[update protocol](./server-updates.md); the connection runtime handles the
|
||||
resulting disconnect.
|
||||
|
||||
### Desktop without a local environment
|
||||
|
||||
Desktop normally launches its own primary server, but the desktop setting `localEnvironmentEnabled`
|
||||
(`apps/desktop/src/settings/DesktopAppSettings.ts`) turns that off. Changing it relaunches the app;
|
||||
no local state is deleted. On the next start the main process skips port selection, server exposure,
|
||||
and the primary and WSL backends, and opens the window right away. The renderer sees this through
|
||||
`desktopBridge.getLocalEnvironmentEnabled()`: `readPrimaryEnvironmentTarget` returns null, so primary
|
||||
auth and platform-managed discovery are skipped and only saved environments (pairing, relay, SSH)
|
||||
connect. This is possible because the desktop renderer is not served by the backend: the `t3code://`
|
||||
scheme serves the bundled client from disk (Vite in development) and API traffic always goes to the
|
||||
environment's own URL.
|
||||
@@ -187,3 +187,14 @@ Include the diagnostic message and trace ID when reporting a persistent failure.
|
||||
|
||||
For a connection that still fails after linking, check the date and time on both
|
||||
devices. For server version warnings, follow [Updating T3 Code](./updating.md).
|
||||
|
||||
## Using the Desktop App as a Remote Only
|
||||
|
||||
If a computer should only drive work running elsewhere, turn off its local environment. In the
|
||||
desktop app, open **Settings → Connections** and switch off **Local
|
||||
environment**. T3 Code restarts without a local server: no local agents or terminals run, WSL
|
||||
backends stay off, and other devices can no longer connect to this computer. Your projects,
|
||||
history, and saved connections are kept, and you keep working through pairing, T3 Connect, or SSH.
|
||||
|
||||
Switch **Local environment** back on in the same place to restart with your previous local
|
||||
settings.
|
||||
Reference in new issue
Block a user