diff --git a/apps/server/src/git/Layers/CodexTextGeneration.ts b/apps/server/src/git/Layers/CodexTextGeneration.ts index c9f9fb9403..8f332bf13e 100644 --- a/apps/server/src/git/Layers/CodexTextGeneration.ts +++ b/apps/server/src/git/Layers/CodexTextGeneration.ts @@ -172,7 +172,10 @@ const makeCodexTextGeneration = Effect.gen(function* () { "-", ], { - env: codexSettings?.homePath ? { CODEX_HOME: codexSettings.homePath } : {}, + env: { + ...process.env, + ...(codexSettings?.homePath ? { CODEX_HOME: codexSettings.homePath } : {}), + }, cwd, shell: process.platform === "win32", stdin: {