Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): use Linux home for Codex probe cwd on WSL drvfs mounts #8956

Closedmznouira(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/8956/headopened View on GitHub

Showing 4 changed files with 55 additions and 2 deletions (loading 1).

x
0 of 4 viewed, 4 left
2 additions and 1 deletionapps/server/src/provider/Layers/CodexProvider.tsModified
View file
@@ -28,6 +28,7 @@
import { createModelCapabilities, readCustomModelEntries } from "@t3tools/shared/model";
import { resolveSpawnCommand } from "@t3tools/shared/shell";
import { codexAppServerArgs, resolveCodexLaunchArgs } from "./codexLaunchArgs.ts";
+import { resolveCodexProbeCwd } from "./codexProbeCwd.ts";
import {
AUTH_PROBE_TIMEOUT_MS,
buildServerProvider,
@@ -592,7 +593,7 @@
binaryPath: codexSettings.binaryPath,
homePath: codexSettings.homePath,
launchArgs: resolveCodexLaunchArgs(codexSettings.launchArgs, resolvedEnvironment),
- cwd: process.cwd(),
+ cwd: resolveCodexProbeCwd(process.cwd(), resolvedEnvironment),
customModels: codexSettings.customModels,
environment: resolvedEnvironment,
}).pipe(
24 additions and 1 deletionapps/server/src/provider/Layers/ProviderRegistry.test.tsModified
View file
@@ -1,5 +1,5 @@
import * as NodeServices from "@effect/platform-node/NodeServices";
-import { describe, it, assert } from "@effect/vitest";
+import { describe, it, assert, vi } from "@effect/vitest";
import * as DateTime from "effect/DateTime";
import * as Deferred from "effect/Deferred";
import * as Effect from "effect/Effect";
@@ -431,6 +431,29 @@