The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 04:30 UTC
test(server): launcher PATH lookup test no longer drops the Windows drive letter (#22534)
Co-authored-by: Alb11747 <40252880+Alb11747@users.noreply.github.com>
Tristan Knight committed
Nov 5, 2026 at 20:18 UTC
bc1b558442222027d324b97b524bbe9dc76419dc
1 file changed
+3
-2
apps/server/src/cli/update.test.ts
+3
-2
@@ -407,6 +407,7 @@ it.layer(NodeServices.layer)("t3 update launcher", (it) => {
407
Effect.gen(function* () {
408
const fs = yield* FileSystem.FileSystem;
409
const path = yield* Path.Path;
410
+ const delimiter = (yield* HostProcess.Platform) === "win32" ? ";" : ":";
411
const root = yield* fs.makeTempDirectoryScoped({ prefix: "t3-update-" });
412
const launcher = path.join(root, "bin/t3");
413
yield* fs.makeDirectory(path.dirname(launcher), { recursive: true });
@@ -415,7 +416,7 @@ it.layer(NodeServices.layer)("t3 update launcher", (it) => {
416
const bare = yield* resolveLauncherPath.pipe(
417
Effect.provideService(HostProcess.InvokedAs, "t3"),
418
Effect.provideService(HostProcess.Environment, {
418
- PATH: `${path.join(root, "missing")}:${path.join(root, "bin")}`,
419
+ PATH: [path.join(root, "missing"), path.join(root, "bin")].join(delimiter),
420
}),
421
Effect.provideService(HostProcess.WorkingDirectory, root),
422
);
@@ -433,7 +434,7 @@ it.layer(NodeServices.layer)("t3 update launcher", (it) => {
434
assert.equal(bare, launcher);
435
assert.equal(relative, launcher);
436
assert.equal(absent, undefined);
436
- }).pipe(Effect.scoped, Effect.provideService(HostProcess.Platform, "linux")),
437
+ }).pipe(Effect.scoped),
438
);
439
});
440