From 7c89a2acf67ea5c8f2a471471a20ac1b6680a596 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Thu, 12 Mar 2026 02:24:47 +0900 Subject: [PATCH] test: update gpt-5.4 fallback expectations Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- src/agents/utils.test.ts | 14 +++++++------- src/plugin-handlers/config-handler.test.ts | 4 ++-- src/shared/agent-variant.test.ts | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/agents/utils.test.ts b/src/agents/utils.test.ts index 645e0edc0..87d6db761 100644 --- a/src/agents/utils.test.ts +++ b/src/agents/utils.test.ts @@ -1116,7 +1116,7 @@ describe("buildAgent with category and skills", () => { const agent = buildAgent(source["test-agent"], TEST_MODEL) // #then - category's built-in model and skills are applied - expect(agent.model).toBe("openai/gpt-5.3-codex") + expect(agent.model).toBe("openai/gpt-5.4") expect(agent.variant).toBe("xhigh") expect(agent.prompt).toContain("Role: Designer-Turned-Developer") expect(agent.prompt).toContain("Task description") @@ -1229,9 +1229,9 @@ describe("override.category expansion in createBuiltinAgents", () => { // #when const agents = await createBuiltinAgents([], overrides, undefined, TEST_DEFAULT_MODEL) - // #then - ultrabrain category: model=openai/gpt-5.3-codex, variant=xhigh + // #then - ultrabrain category: model=openai/gpt-5.4, variant=xhigh expect(agents.oracle).toBeDefined() - expect(agents.oracle.model).toBe("openai/gpt-5.3-codex") + expect(agents.oracle.model).toBe("openai/gpt-5.4") expect(agents.oracle.variant).toBe("xhigh") }) @@ -1298,9 +1298,9 @@ describe("override.category expansion in createBuiltinAgents", () => { // #when const agents = await createBuiltinAgents([], overrides, undefined, TEST_DEFAULT_MODEL) - // #then - ultrabrain category: model=openai/gpt-5.3-codex, variant=xhigh + // #then - ultrabrain category: model=openai/gpt-5.4, variant=xhigh expect(agents.sisyphus).toBeDefined() - expect(agents.sisyphus.model).toBe("openai/gpt-5.3-codex") + expect(agents.sisyphus.model).toBe("openai/gpt-5.4") expect(agents.sisyphus.variant).toBe("xhigh") }) @@ -1313,9 +1313,9 @@ describe("override.category expansion in createBuiltinAgents", () => { // #when const agents = await createBuiltinAgents([], overrides, undefined, TEST_DEFAULT_MODEL) - // #then - ultrabrain category: model=openai/gpt-5.3-codex, variant=xhigh + // #then - ultrabrain category: model=openai/gpt-5.4, variant=xhigh expect(agents.atlas).toBeDefined() - expect(agents.atlas.model).toBe("openai/gpt-5.3-codex") + expect(agents.atlas.model).toBe("openai/gpt-5.4") expect(agents.atlas.variant).toBe("xhigh") }) diff --git a/src/plugin-handlers/config-handler.test.ts b/src/plugin-handlers/config-handler.test.ts index 6da6dd9b7..c3e7a91d8 100644 --- a/src/plugin-handlers/config-handler.test.ts +++ b/src/plugin-handlers/config-handler.test.ts @@ -557,7 +557,7 @@ describe("Prometheus category config resolution", () => { // then expect(config).toBeDefined() - expect(config?.model).toBe("openai/gpt-5.3-codex") + expect(config?.model).toBe("openai/gpt-5.4") expect(config?.variant).toBe("xhigh") }) @@ -617,7 +617,7 @@ describe("Prometheus category config resolution", () => { // then - falls back to DEFAULT_CATEGORIES expect(config).toBeDefined() - expect(config?.model).toBe("openai/gpt-5.3-codex") + expect(config?.model).toBe("openai/gpt-5.4") expect(config?.variant).toBe("xhigh") }) diff --git a/src/shared/agent-variant.test.ts b/src/shared/agent-variant.test.ts index 53e32baa3..c5f10b84a 100644 --- a/src/shared/agent-variant.test.ts +++ b/src/shared/agent-variant.test.ts @@ -115,7 +115,7 @@ describe("resolveVariantForModel", () => { test("returns correct variant for openai provider (hephaestus agent)", () => { // #given hephaestus has openai/gpt-5.3-codex with variant "medium" in its chain const config = {} as OhMyOpenCodeConfig - const model = { providerID: "openai", modelID: "gpt-5.3-codex" } + const model = { providerID: "openai", modelID: "gpt-5.4" } // #when const variant = resolveVariantForModel(config, "hephaestus", model) @@ -179,7 +179,7 @@ describe("resolveVariantForModel", () => { "custom-agent": { category: "ultrabrain" }, }, } as OhMyOpenCodeConfig - const model = { providerID: "openai", modelID: "gpt-5.3-codex" } + const model = { providerID: "openai", modelID: "gpt-5.4" } // when const variant = resolveVariantForModel(config, "custom-agent", model)