Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

Commit df9a4cc

Browse files
joshsnyclaude
andauthored
feat(codex)!: remove the codex-acp harness, app-server is the only codex adapter (#3198)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 6cfb8b3 commit df9a4cc

42 files changed

Lines changed: 101 additions & 4210 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/code/scripts/download-binaries.mjs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,6 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
2020
const DEST_DIR = join(__dirname, "..", "resources", "codex-acp");
2121

2222
const BINARIES = [
23-
{
24-
name: "codex-acp",
25-
version: "0.14.0",
26-
getUrl: (version, target) => {
27-
const ext = target.includes("windows") ? "zip" : "tar.gz";
28-
return `https://github.com/zed-industries/codex-acp/releases/download/v${version}/codex-acp-${version}-${target}.${ext}`;
29-
},
30-
getTarget: () => {
31-
const { platform, arch } = process;
32-
const targets = {
33-
darwin: { arm64: "aarch64-apple-darwin", x64: "x86_64-apple-darwin" },
34-
linux: {
35-
arm64: "aarch64-unknown-linux-gnu",
36-
x64: "x86_64-unknown-linux-gnu",
37-
},
38-
win32: {
39-
arm64: "aarch64-pc-windows-msvc",
40-
x64: "x86_64-pc-windows-msvc",
41-
},
42-
};
43-
const platformTargets = targets[platform];
44-
if (!platformTargets)
45-
throw new Error(`Unsupported platform: ${platform}`);
46-
const target = platformTargets[arch];
47-
if (!target) throw new Error(`Unsupported arch: ${arch}`);
48-
return target;
49-
},
50-
},
5123
{
5224
name: "codex",
5325
version: "0.140.0",

apps/code/vite-main-plugins.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ export function copyCodexAcpBinaries(): Plugin {
568568

569569
const sourceDir = join(__dirname, "resources/codex-acp");
570570
const binaries = [
571-
{ name: "codex-acp", winName: "codex-acp.exe" },
571+
{ name: "codex", winName: "codex.exe" },
572572
// The native codex CLI must ship next to codex-acp: the app-server
573573
// sub-adapter resolves it as a sibling and silently falls back to
574574
// codex-acp when it's missing.

apps/code/vite.main.config.mts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ function copyCodexAcpBinaries(): Plugin {
565565

566566
const sourceDir = join(__dirname, "resources/codex-acp");
567567
const binaries = [
568-
{ name: "codex-acp", winName: "codex-acp.exe" },
569568
{ name: "codex", winName: "codex.exe" },
570569
{ name: "rg", winName: "rg.exe" },
571570
];

packages/agent/e2e/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ export const E2E = {
9090
}
9191
process.env.OPENAI_BASE_URL = openAiBase();
9292
process.env.OPENAI_API_KEY = TOKEN;
93-
process.env.POSTHOG_CODEX_USE_APP_SERVER = "1";
9493
},
9594

9695
/** The codexOptions the codex arm passes through `createAcpConnection`. */

packages/agent/parity/harness.ts

Lines changed: 0 additions & 240 deletions
This file was deleted.

0 commit comments

Comments
 (0)