Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Codex V2 sessions expand ~ in the binary path #13470

Mergedjuliusmarmingemerged 2 commits intot3code/codex-turn-mapping fromrefs/pull/13470/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 50 additions and 0 deletions.

x
0 of 2 viewed, 2 left
48 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.tsModified
View file
@@ -1,3 +1,5 @@
+import * as NodeOS from "node:os";
+​
import { historyResponseItems } from "../ContextHandoffBudget.ts";
import type { ProviderAdapterV2HistoricalContext } from "../ProviderAdapter.ts";
import {
@@ -38,6 +40,7 @@
import * as FileSystem from "effect/FileSystem";
import * as Fiber from "effect/Fiber";
import * as Layer from "effect/Layer";
+import * as Path from "effect/Path";
import * as PlatformError from "effect/PlatformError";
import * as Ref from "effect/Ref";
import * as Schema from "effect/Schema";
@@ -45,6 +48,7 @@
import { TestClock } from "effect/testing";
import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
​
+import { ServerConfig } from "../../config.ts";
import * as McpProviderSession from "../../mcp/McpProviderSession.ts";
import type { EventNdjsonLogger } from "../../provider/Layers/EventNdjsonLogger.ts";
import {
@@ -77,6 +81,7 @@
CodexAppServerClientFactory,
codexAppServerClientFactoryFromSettingsLayer,
type CodexAppServerClientFactoryShape,
+ createCodexAdapterV2,
makeCodexAdapterV2,