From 3564425e76711ac3c2c81b15d84ff8e8d487baab Mon Sep 17 00:00:00 2001 From: Simon Klee Date: Thu, 5 Nov 2026 00:08:36 +0100 Subject: [PATCH] test(cli): let the ACP subprocess suites start another binary OPENCODE_ACP_TEST_BIN runs the same suites against the Rust client (C.11). --- packages/cli/test/acp/subprocess.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/cli/test/acp/subprocess.ts b/packages/cli/test/acp/subprocess.ts index dee0ee22c6a..39de931b150 100644 --- a/packages/cli/test/acp/subprocess.ts +++ b/packages/cli/test/acp/subprocess.ts @@ -186,7 +186,9 @@ function verifierConfig(llmUrl: string) { } function spawnAcp(input: { readonly env: Record }): AcpProcess { - const child = Bun.spawn([process.execPath, "run", "src/index.ts", "acp"], { + // OPENCODE_ACP_TEST_BIN runs the suites against another ACP binary, such as the Rust client. + const override = process.env.OPENCODE_ACP_TEST_BIN + const child = Bun.spawn(override ? [override, "acp"] : [process.execPath, "run", "src/index.ts", "acp"], { cwd: path.join(import.meta.dir, "../.."), env: input.env, stdin: "pipe",