Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): allow V1 and V2 to run concurrently #12480

Mergedjuliusmarmingemerged 6 commits intot3code/codex-turn-mapping fromrefs/pull/12480/headmerged by juliusmarminge View on GitHub

Showing 9 changed files with 40 additions and 49 deletions (loading 6).

x
0 of 9 viewed, 9 left
29 additions and 8 deletionsapps/desktop/src/app/DesktopAppIdentity.test.tsModified
View file
@@ -14,6 +14,7 @@
import * as DesktopAssets from "./DesktopAssets.ts";
import * as DesktopConfig from "./DesktopConfig.ts";
import * as DesktopEnvironment from "./DesktopEnvironment.ts";
+import * as DesktopUserData from "./DesktopUserData.ts";
​
const defaultEnvironmentInput = {
dirname: "/repo/apps/desktop/dist-electron",
@@ -125,13 +126,14 @@
return effect.pipe(
Effect.provide(
DesktopAppIdentity.layer.pipe(
+ Layer.provide(NodePath.layerPosix),
Layer.provideMerge(
FileSystem.layerNoop({
exists: (path) =>
input.legacyPathProbeError
? Effect.fail(input.legacyPathProbeError)
: Effect.succeed(
- input.legacyPathExists === true && path.includes("T3 Code (Alpha)"),
+ input.legacyPathExists === true && /T3 Code \((Alpha|Dev)\)/.test(path),
readFileString: () =>
Effect.succeed(input.packageJson ?? '{"t3codeCommitHash":"abcdef1234567890"}'),
@@ -146,20 +148,36 @@
​
describe("DesktopAppIdentity", () => {