Skip to content

Commit 7bb8b1a

Browse files
fix(server): default blank Codex SQLite overrides to shared home
1 parent 1a22f41 commit 7bb8b1a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/server/src/provider/Drivers/CodexHomeLayout.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ export function withCodexSqliteHome(
7777
): NodeJS.ProcessEnv {
7878
// Codex's sqlite_home config still takes precedence over this environment default.
7979
return layout.mode === "authOverlay"
80-
? { ...environment, CODEX_SQLITE_HOME: environment.CODEX_SQLITE_HOME ?? layout.sharedHomePath }
80+
? {
81+
...environment,
82+
CODEX_SQLITE_HOME: environment.CODEX_SQLITE_HOME?.trim()
83+
? environment.CODEX_SQLITE_HOME
84+
: layout.sharedHomePath,
85+
}
8186
: environment;
8287
}
8388
// Codex creates these runtime locks itself when it starts in a shadow home before the shared

0 commit comments

Comments
 (0)