From d966fa578ee9303a2b4dda20338f9ecd0da486e1 Mon Sep 17 00:00:00 2001 From: Dotta Date: Fri, 9 Oct 2026 11:55:41 -0500 Subject: [PATCH] Keep the synthetic Codex test binding outside server compilation Resolve the offline fixture module at runtime, preserving the server rootDir boundary. Co-Authored-By: Paperclip --- .../src/services/native-runtime/native-session-resume.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/services/native-runtime/native-session-resume.test.ts b/server/src/services/native-runtime/native-session-resume.test.ts index 80236ceb6a..be6238e436 100644 --- a/server/src/services/native-runtime/native-session-resume.test.ts +++ b/server/src/services/native-runtime/native-session-resume.test.ts @@ -762,7 +762,7 @@ const recoveryFakeCodex = resolve( await chmod(command, 0o700); // Installed dependency selection intentionally precedes PATH on mainline. // Bind this fixture's synthetic provider explicitly at that boundary. - const codexCommandModule = await import("../../../../packages/paperclip-runner/src/drivers/codex/codex-command.js"); + const codexCommandModule = await import(new URL("../../../../packages/paperclip-runner/src/drivers/codex/codex-command.ts", import.meta.url).href); const codexCommandSelection = vi.spyOn(codexCommandModule, "resolveCodexCommand").mockReturnValue(command); restoreCodexCommand = () => codexCommandSelection.mockRestore(); await new Promise((done) => server.listen(0, "127.0.0.1", done));