Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(ssh): keep remote work running when the desktop closes #10951

ClosedGigioxx(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/10951/headopened View on GitHub

Showing 4 changed files with 108 additions and 3 deletions (loading 1).

x
0 of 4 viewed, 4 left
1 addition and 0 deletionsdocs/user/remote-access.mdModified
View file
@@ -136,6 +136,7 @@
ssh user@example.com 'sh -lc "command -v claude codex"'
```
​
+Closing the desktop app leaves the remote server and running agents active.
If SSH reconnecting fails after an app update, retry the launch once. Removing
the connection stops a server that T3 Code launched; a server that was already
running is left alone.
105 additions and 1 deletionpackages/ssh/src/runnerProcess.test.tsModified
View file
@@ -11,7 +11,11 @@
import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
import * as NodeNet from "node:net";
​
-import { buildRemoteStopScript, buildRemoteT3RunnerScript } from "./tunnel.ts";
+import {
+ buildRemoteLaunchScript,
+ buildRemoteStopScript,
+ buildRemoteT3RunnerScript,
+} from "./tunnel.ts";
​
const Started = Schema.Struct({
pid: Schema.Number,
@@ -129,6 +133,106 @@
​