Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): stop SQLite conflicts from breaking Codex providers on Windows #24426

CloseduShifty(GitHub profile, opens in a new tab)wants to merge 9 commits intomain fromrefs/pull/24426/headopened View on GitHub

Showing 11 changed files with 113 additions and 33 deletions (loading 9).

x
0 of 11 viewed, 11 left
21 additions and 11 deletionsapps/server/src/orchestration-v2/Adapters/CodexAdapterV2.tsModified
View file
@@ -112,6 +112,7 @@
} from "../../provider/CodexMcpElicitation.ts";
import {
materializeCodexShadowHome,
+ codexHomeEnvironment,
resolveCodexHomeLayout,
} from "../../provider/Drivers/CodexHomeLayout.ts";
import {
@@ -1581,17 +1582,26 @@
const serverConfig = yield* ServerConfig;
const homeLayout = yield* resolveCodexHomeLayout(config);
- yield* materializeCodexShadowHome(homeLayout).pipe(
- Effect.mapError(
- (cause) =>
- new ProviderAdapterDriverCreateError({
- driver: CODEX_DRIVER_KIND,
- instanceId,
- detail: "Failed to materialize the Codex shadow home.",
- cause,
- }),
- ),
+ const environmentOverrides = yield* mergeProviderInstanceEnvironment(
+ environment,
+ hostEnvironment,
+ // Managed runtimes prepare their own home and report setup failures through provider status.
+ const processEnv =
+ hooks.resolveRuntime === undefined