@devries-cameron20 / t3code Mirror · read-only / commits / 2a27e15355
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 22, 19:30 UTC

fix(server): server tests resolve the macOS temp dir symlink (#21442)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

tatsuaki watanabe committed Oct 22, 2026 at 06:11 UTC 2a27e153559bc400cf5d1799eee68083c129b3ad
2 files changed +4 -2
apps/server/src/config.ts
+3 -1
@@ -187,7 +187,9 @@ const makeTest = Effect.fn("ServerConfig.makeTest")(function* (
187 const baseDir =
188 typeof baseDirOrPrefix === "string"
189 ? baseDirOrPrefix
190 - : yield* fs.makeTempDirectoryScoped({ prefix: baseDirOrPrefix.prefix });
190 + : // macOS temp dirs live under the /var -> /private/var symlink; storage cleanup's
191 + // symlink guards compare resolved paths, so generated test dirs must be real paths.
192 + yield* fs.realPath(yield* fs.makeTempDirectoryScoped({ prefix: baseDirOrPrefix.prefix }));
193 const derivedPaths = yield* deriveServerPaths(baseDir, devUrl);
194 yield* ensureServerDirectories(derivedPaths);
195
apps/server/src/storageCleanup.test.ts
+1 -1
@@ -244,7 +244,7 @@ const cleanupFixture = (
244 const fs = yield* FileSystem.FileSystem;
245 const config = yield* ServerConfig.ServerConfig;
246 const git = yield* GitVcsDriver.GitVcsDriver;
247 - const repo = yield* fs.makeTempDirectoryScoped({ prefix: "cleanup-repo-" });
247 + const repo = yield* fs.realPath(yield* fs.makeTempDirectoryScoped({ prefix: "cleanup-repo-" }));
248 const command = (cwd: string, args: string[]) =>
249 git.execute({ operation: "cleanup-test", cwd, args });
250 yield* command(repo, ["init", "-b", "main"]);