Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): an SSH reconnect during a desktop update no longer locks the updated app out of its T3 home #26191

Mergedajbarryiii(GitHub profile, opens in a new tab)merged 24 commits intomain fromrefs/pull/26191/headmerged by juliusmarminge View on GitHub

Showing 15 changed files with 6 additions and 6 deletions (loading 14).

x
0 of 15 viewed, 15 left
6 additions and 6 deletionsapps/desktop/src/backend/DesktopBackendManager.tsModified
View file
@@ -205,7 +205,7 @@
readonly outputDrainTimeout?: Duration.Duration;
readonly onStarted?: (pid: number) => Effect.Effect<void>;
readonly onExitObserved?: () => Effect.Effect<void>;
- readonly onReady?: () => Effect.Effect<void>;
+ readonly onReady?: (pid: number) => Effect.Effect<void>;
readonly onReadinessFailure?: (error: BackendReadinessTimeoutError) => Effect.Effect<void>;
readonly onOutput?: (
streamName: BackendProcessOutputStream,
@@ -252,8 +252,8 @@
readonly id: BackendInstanceId;
readonly label: Effect.Effect<string>;
readonly configResolve: Effect.Effect<DesktopBackendStartConfig, PlatformError.PlatformError>;
- /** Receives the ready run's resolved URL; reading current config could race a subsequent restart. */
- readonly onReady?: (httpBaseUrl: URL) => Effect.Effect<void>;
+ /** Receives the ready run's URL and pid; reading current config could race a subsequent restart. */
+ readonly onReady?: (httpBaseUrl: URL, pid: number) => Effect.Effect<void>;
readonly onShutdown?: () => Effect.Effect<void>;
readonly onPreflightFailed?: (failure: PreflightFailure) => Effect.Effect<boolean>;
readonly onStateDirOwned?: () => Effect.Effect<void>;
@@ -578,7 +578,7 @@
httpBaseUrl: options.httpBaseUrl,
timeout: options.readinessTimeout ?? DEFAULT_BACKEND_READINESS_TIMEOUT,
}).pipe(
- Effect.flatMap(() => options.onReady?.() ?? Effect.void),
+ Effect.flatMap(() => options.onReady?.(handle.pid) ?? Effect.void),
Effect.as(true),
Effect.catchTags({