Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): reuse a running local server #26547

ClosedJamesOBrien2(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/26547/headopened View on GitHub

Showing 32 changed files with 115 additions and 4 deletions (loading 29).

x
0 of 32 viewed, 32 left
1 addition and 0 deletionsapps/desktop/src/backend/DesktopBackendConfiguration.tsModified
View file
@@ -528,6 +528,7 @@
"3",
entryPath: environment.backendEntryPath,
+ stateDir: environment.stateDir,
cwd: environment.backendCwd,
env: {
...backendChildEnvPatch(),
86 additions and 3 deletionsapps/desktop/src/backend/DesktopBackendManager.test.tsModified
View file
@@ -28,6 +28,7 @@
import * as DesktopTelemetryPublisher from "../telemetry/DesktopTelemetryPublisher.ts";
import * as DesktopBrowserHost from "../preview/DesktopBrowserHost.ts";
import * as DesktopWslEnvironment from "../wsl/DesktopWslEnvironment.ts";
+import serverPackageJson from "../../../server/package.json" with { type: "json" };
​
const decodeDesktopBackendBootstrap = Schema.decodeEffect(
Schema.fromJsonString(DesktopBackendBootstrap),
@@ -117,6 +118,7 @@
​
interface MakeInstanceInput {
+ readonly fileSystemLayer?: Layer.Layer<FileSystem.FileSystem>;
readonly spawnerLayer: Layer.Layer<ChildProcessSpawner.ChildProcessSpawner>;
readonly httpClientLayer?: Layer.Layer<HttpClient.HttpClient>;
readonly backendOutputLog?: Partial<DesktopObservability.DesktopBackendOutputLogShape>;