Skip to content

Commit 14f8ed1

Browse files
authored
test(onboard): remove redundant inference test bridge (#121574)
1 parent 8d810d1 commit 14f8ed1

3 files changed

Lines changed: 0 additions & 41 deletions

File tree

‎src/commands/onboard-inference.test-support.ts‎

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

‎src/commands/onboard-inference.test.ts‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
OPENAI_API_DEFAULT_MODEL_REF,
99
detectInferenceBackends,
1010
} from "./onboard-inference.js";
11-
import { detectNativeCodexAppServer } from "./onboard-inference.test-support.js";
1211

1312
function probeDeps(found: Record<string, boolean>) {
1413
return async (command: string): Promise<LocalCommandProbe> => ({
@@ -415,18 +414,6 @@ describe("detectInferenceBackends", () => {
415414
expect(candidates[0]?.detail).toBe("installed");
416415
});
417416

418-
it("detects a native Codex App Server independently of inference ranking", async () => {
419-
const command = "/Applications/ChatGPT.app/Contents/Resources/codex";
420-
421-
await expect(
422-
detectNativeCodexAppServer({
423-
env: { HOME: "/Users/tester" },
424-
platform: "darwin",
425-
probeLocalCommand: probeDeps({ [command]: true }),
426-
}),
427-
).resolves.toEqual({ command, found: true });
428-
});
429-
430417
it("checks login status with the Codex executable discovered in a macOS app", async () => {
431418
const command = "/Applications/ChatGPT.app/Contents/Resources/codex";
432419
const probed: Array<{ command: string; args: string[] }> = [];

‎src/commands/onboard-inference.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,6 @@ async function detectNativeCodexAppServer(
169169
});
170170
}
171171

172-
if (process.env.VITEST || process.env.NODE_ENV === "test") {
173-
(globalThis as Record<PropertyKey, unknown>)[Symbol.for("openclaw.onboardInferenceTestApi")] = {
174-
detectNativeCodexAppServer,
175-
};
176-
}
177172
/**
178173
* Detect usable inference backends in ladder order. Returns candidates only
179174
* for backends that exist on this machine; the first entry is the bootstrap

0 commit comments

Comments
 (0)