The best way to control Claude Code, Codex and more from any computer or phone
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
});