From 548b40c2da4fd3ec18b47bbb2fc0ec08e04cc4d3 Mon Sep 17 00:00:00 2001 From: can1357 Date: Thu, 19 Feb 2026 05:16:47 +0100 Subject: [PATCH] fix(coding-agent): stabilized codex model switch tests --- .../coding-agent/test/agent-session-context-promotion.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/coding-agent/test/agent-session-context-promotion.test.ts b/packages/coding-agent/test/agent-session-context-promotion.test.ts index 05dcaadb3..923a18c19 100644 --- a/packages/coding-agent/test/agent-session-context-promotion.test.ts +++ b/packages/coding-agent/test/agent-session-context-promotion.test.ts @@ -106,7 +106,7 @@ describe("AgentSession context promotion", () => { it("clears codex provider session state on manual setModel switch away from codex", async () => { const codexModel = modelRegistry.find("openai-codex", "gpt-5.3-codex"); - const nonCodexModel = modelRegistry.getAvailable().find(model => model.api !== "openai-codex-responses"); + const nonCodexModel = modelRegistry.getAll().find(model => model.api !== "openai-codex-responses"); if (!codexModel || !nonCodexModel) { throw new Error("Expected codex and non-codex models to exist"); } @@ -143,7 +143,7 @@ describe("AgentSession context promotion", () => { it("clears codex provider session state on manual temporary switch into codex", async () => { const codexModel = modelRegistry.find("openai-codex", "gpt-5.3-codex"); - const nonCodexModel = modelRegistry.getAvailable().find(model => model.api !== "openai-codex-responses"); + const nonCodexModel = modelRegistry.getAll().find(model => model.api !== "openai-codex-responses"); if (!codexModel || !nonCodexModel) { throw new Error("Expected codex and non-codex models to exist"); }