Skip to content
Source
Sign inSign up
pingdotgg/t3code

Fix Codex Desktop detection on Windows #4346

ClosedAndrew-Forster(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/4346/headopened View on GitHub

Showing 4 changed files with 124 additions and 0 deletions (loading 2).

x
0 of 4 viewed, 4 left
3 additions and 0 deletionsapps/server/src/provider/Drivers/CodexDriver.tsModified
View file
@@ -57,6 +57,7 @@
materializeCodexShadowHome,
resolveCodexHomeLayout,
} from "./CodexHomeLayout.ts";
+import { resolveCodexExecutablePath } from "./CodexExecutable.ts";
const decodeCodexSettings = Schema.decodeSync(CodexSettings);
​
const DRIVER_KIND = ProviderDriverKind.make("codex");
@@ -120,6 +121,7 @@
const serverSettings = yield* ServerSettingsService;
const eventLoggers = yield* ProviderEventLoggers;
const processEnv = mergeProviderInstanceEnvironment(environment);
+ const binaryPath = yield* resolveCodexExecutablePath(config.binaryPath, processEnv);
const homeLayout = yield* resolveCodexHomeLayout(config);
const continuationIdentity = codexContinuationIdentity(homeLayout);
const stampIdentity = withInstanceIdentity({
@@ -142,6 +144,7 @@
const effectiveConfig = {
...config,
enabled,
+ binaryPath,
homePath: homeLayout.effectiveHomePath ?? "",
} satisfies CodexSettings;
const maintenanceCapabilities = yield* resolveProviderMaintenanceCapabilitiesEffect(UPDATE, {
121 additions and 0 deletionsapps/server/src/provider/Drivers/CodexExecutable.test.tsAdded
View file
@@ -0,0 +1,121 @@