From afde435c94e90b519b85aefeec4ec587e7a477ae Mon Sep 17 00:00:00 2001 From: ShuaixinHuang <1836656514@qq.com> Date: Tue, 20 Oct 2026 17:25:38 +0800 Subject: [PATCH] test(setup): use native Windows launcher in layered OpenCode fixture (#4947) --- .../setup/registrationRuntimeEnvironmentCli.test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/setup/registrationRuntimeEnvironmentCli.test.ts b/tests/acceptance/setup/registrationRuntimeEnvironmentCli.test.ts index 9617e19b8b..7af5a60a7e 100644 --- a/tests/acceptance/setup/registrationRuntimeEnvironmentCli.test.ts +++ b/tests/acceptance/setup/registrationRuntimeEnvironmentCli.test.ts @@ -318,7 +318,13 @@ cliTest( mcp: { rea: clientRegistrationEntry( "opencode", - [resolve("scripts/rea.mjs"), "mcp"], + // Windows launches JavaScript through Node; otherwise setup repairs + // the command before this test can exercise layered environment data. + [ + ...(process.platform === "win32" ? [process.execPath] : []), + resolve("scripts/rea.mjs"), + "mcp", + ], env, ), },