| author | |
| committer | |
| log | aa2d385a626c5c659e64f7e1a5bf6b568c3b840f |
| tree | b9f16adaeca80dd654ee8e87a6788322e61ce317 |
| parent | e25db3a572a6718a1f3c5a64529395cc88cd5249 |
| signature | Signed by PGP key B5690EEEBB952194 |
2 files changed, 6 insertions(+), 2 deletions(-)
apps/server/src/provider/Layers/CodexProvider.ts+2-1| ... | ... | @@ -28,6 +28,7 @@ import { ServerSettingsError } from "@t3tools/contracts"; |
| 28 | 28 | import { makeManagedServerProvider } from "../makeManagedServerProvider.ts"; |
| 29 | 29 | import { buildServerProvider } from "../providerSnapshot.ts"; |
| 30 | 30 | import { CodexProvider } from "../Services/CodexProvider.ts"; |
| 31 | import { expandHomePath } from "../../pathExpansion.ts"; | |
| 31 | 32 | import { ServerSettingsService } from "../../serverSettings.ts"; |
| 32 | 33 | import packageJson from "../../../package.json" with { type: "json" }; |
| 33 | 34 | |
| ... | ... | @@ -222,7 +223,7 @@ const probeCodexAppServerProvider = Effect.fn("probeCodexAppServerProvider")(fun |
| 222 | 223 | command: input.binaryPath, |
| 223 | 224 | args: ["app-server"], |
| 224 | 225 | cwd: input.cwd, |
| 225 | ...(input.homePath ? { env: { CODEX_HOME: input.homePath } } : {}), | |
| 226 | ...(input.homePath ? { env: { CODEX_HOME: expandHomePath(input.homePath) } } : {}), | |
| 226 | 227 | }), |
| 227 | 228 | ); |
| 228 | 229 | const client = yield* Effect.service(CodexClient.CodexAppServerClient).pipe( |
apps/server/src/provider/Layers/CodexSessionRuntime.ts+4-1| ... | ... | @@ -30,6 +30,7 @@ import { |
| 30 | 30 | CODEX_DEFAULT_MODE_DEVELOPER_INSTRUCTIONS, |
| 31 | 31 | CODEX_PLAN_MODE_DEVELOPER_INSTRUCTIONS, |
| 32 | 32 | } from "../CodexDeveloperInstructions.ts"; |
| 33 | import { expandHomePath } from "../../pathExpansion.ts"; | |
| 33 | 34 | |
| 34 | 35 | const PROVIDER = "codex" as const; |
| 35 | 36 | |
| ... | ... | @@ -683,7 +684,9 @@ export const makeCodexSessionRuntime = ( |
| 683 | 684 | .spawn( |
| 684 | 685 | ChildProcess.make(options.binaryPath, ["app-server"], { |
| 685 | 686 | cwd: options.cwd, |
| 686 | ...(options.homePath ? { env: { ...process.env, CODEX_HOME: options.homePath } } : {}), | |
| 687 | ...(options.homePath | |
| 688 | ? { env: { ...process.env, CODEX_HOME: expandHomePath(options.homePath) } } | |
| 689 | : {}), | |
| 687 | 690 | shell: process.platform === "win32", |
| 688 | 691 | }), |
| 689 | 692 | ) |