1--- a/apps/server/src/provider/Drivers/CodexHomeLayout.ts
2+++ b/apps/server/src/provider/Drivers/CodexHomeLayout.ts
3@@ -30,7 +30,7 @@
4
5 const PRIVATE_ENTRY_NAMES = new Set(["auth.json", "models_cache.json"]);
6 // Finder maintains metadata separately for each directory, including shadow homes.
7-const SHADOW_LOCAL_ENTRY_NAMES = new Set(["log", "memories", "tmp", ".DS_Store"]);
8+const SHADOW_LOCAL_ENTRY_NAMES = new Set(["log", "memories", "tmp", ".tmp", ".DS_Store"]);
9 // Codex creates these runtime locks itself when it starts in a shadow home before the shared
10 // home has one. They guard shared state, so a local copy is replaced with the shared link.
11 const REPLACEABLE_SHARED_RUNTIME_ENTRIES = new Set(["mcp-oauth-locks", ".sqlite-maintenance.lock"]);
12--- a/apps/server/src/provider/Drivers/CodexHomeLayout.test.ts
13+++ b/apps/server/src/provider/Drivers/CodexHomeLayout.test.ts
14@@ -234,11 +234,13 @@
15 yield* fileSystem.makeDirectory(path.join(sharedHome, "log"));
16 yield* fileSystem.makeDirectory(path.join(sharedHome, "memories"));
17 yield* fileSystem.makeDirectory(path.join(sharedHome, "tmp"));
18+ yield* fileSystem.makeDirectory(path.join(sharedHome, ".tmp"));
19 yield* writeTextFile(path.join(sharedHome, "config.toml"), 'model = "gpt-5-codex"\n');
20 yield* writeTextFile(path.join(shadowHome, "auth.json"), '{"shadow":true}\n');
21 yield* fileSystem.makeDirectory(path.join(shadowHome, "log"), { recursive: true });
22 yield* fileSystem.makeDirectory(path.join(shadowHome, "memories"), { recursive: true });
23 yield* fileSystem.makeDirectory(path.join(shadowHome, "tmp"), { recursive: true });
24+ yield* fileSystem.makeDirectory(path.join(shadowHome, ".tmp"), { recursive: true });
25
26 const layout = yield* resolveCodexHomeLayout(
27 decodeCodexSettings({
28@@ -260,7 +262,12 @@
29 .readLink(path.join(shadowHome, "tmp"))
30 .pipe(Effect.result);
31
32+ const dotTmpLinkResult = yield* fileSystem
33+ .readLink(path.join(shadowHome, ".tmp"))
34+ .pipe(Effect.result);
35+
36 expect(configTarget).toBe(path.join(sharedHome, "config.toml"));
37+ expect(dotTmpLinkResult._tag).toBe("Failure");
38 expect(logLinkResult._tag).toBe("Failure");
39 expect(memoriesLinkResult._tag).toBe("Failure");
40 expect(tmpLinkResult._tag).toBe("Failure");