@devries-cameron20 / t3code Mirror · read-only / commits / be526df88a
Fork 0

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 25, 17:15 UTC

cross platform expandHomePath

Julius Marminge committed Feb 24, 2026 at 15:03 UTC be526df88ae125a0076ecf17109d16001280621c
1 file changed +3 -3
apps/server/src/main.ts
+3 -3
@@ -60,10 +60,10 @@ const CliEnvConfig = Config.all({
60 });
61
62 const expandHomePath = Effect.fn(function* (input: string) {
63 - const { join } = yield* Path.Path;
63 + const { join, sep } = yield* Path.Path;
64 if (input === "~") return os.homedir();
65 - if (input.startsWith("~/")) {
66 - return join(os.homedir(), input.slice(2));
65 + if (input.startsWith(`~${sep}`)) {
66 + return join(os.homedir(), input.slice(sep.length));
67 }
68 return input;
69 });