From cd1846a313bbd556c543723d8260a84d7b3c0e3a Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 17 May 2026 01:56:58 +0800 Subject: [PATCH] test(agents): fix embedded runner test config types --- src/agents/pi-embedded-runner.e2e.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/agents/pi-embedded-runner.e2e.test.ts b/src/agents/pi-embedded-runner.e2e.test.ts index 9edddd3e86d8..6c4a1134cd23 100644 --- a/src/agents/pi-embedded-runner.e2e.test.ts +++ b/src/agents/pi-embedded-runner.e2e.test.ts @@ -346,12 +346,16 @@ describe("runEmbeddedPiAgent", () => { it("resolves explicit OpenAI PI runs through Codex when auth order starts with Codex OAuth", async () => { const sessionFile = nextSessionFile(); const baseConfig = createEmbeddedPiRunnerOpenAiConfig(["mock-1"]); + const openAIProvider = baseConfig.models?.providers?.openai; + if (!openAIProvider) { + throw new Error("expected OpenAI provider test config"); + } const cfg = { ...baseConfig, models: { providers: { openai: { - ...baseConfig.models?.providers?.openai, + ...openAIProvider, baseUrl: "https://api.openai.com/v1", }, },