Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): keep Codex shadow SQLite state together #29574

Opennkcbuilds(GitHub profile, opens in a new tab)wants to merge 21 commits intomain fromrefs/pull/29574/headopened View on GitHub

Showing 10 changed files with 21 additions and 14 deletions (loading 8).

x
0 of 10 viewed, 10 left
18 additions and 11 deletionsapps/server/src/orchestration-v2/Adapters/CodexAdapterV2.tsModified
View file
@@ -1781,17 +1781,24 @@
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,
+ const processEnv =
+ hooks.resolveRuntime === undefined
+ ? yield* materializeCodexShadowHome(homeLayout, environmentOverrides).pipe(
+ Effect.mapError(
+ (cause) =>
+ new ProviderAdapterDriverCreateError({
+ driver: CODEX_DRIVER_KIND,
+ instanceId,
+ detail: "Failed to prepare the Codex shadow home.",
+ cause,
+ }),
+ ),