test: fix stale expectations after gpt-5.5 model promotion

Updates test expectations across agent, cli, shared, plugin, and tools tests

to match gpt-5.5 as the new default for oracle, hephaestus, and deep agents.

Includes snapshot updates for model-fallback tests.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-24 16:17:44 +09:00
parent 6b46b9b4be
commit 708891dabe
11 changed files with 129 additions and 132 deletions
+3 -3
View File
@@ -113,9 +113,9 @@ describe("resolveVariantForModel", () => {
})
test("returns correct variant for openai provider (hephaestus agent)", () => {
// #given hephaestus has openai/gpt-5.4 with variant "medium" in its chain
// #given hephaestus has openai/gpt-5.5 with variant "medium" in its chain
const config = {} as OhMyOpenCodeConfig
const model = { providerID: "openai", modelID: "gpt-5.4" }
const model = { providerID: "openai", modelID: "gpt-5.5" }
// #when
const variant = resolveVariantForModel(config, "hephaestus", model)
@@ -191,7 +191,7 @@ describe("resolveVariantForModel", () => {
test("returns correct variant for oracle agent with openai", () => {
// given
const config = {} as OhMyOpenCodeConfig
const model = { providerID: "openai", modelID: "gpt-5.4" }
const model = { providerID: "openai", modelID: "gpt-5.5" }
// when
const variant = resolveVariantForModel(config, "oracle", model)
+8 -8
View File
@@ -39,7 +39,7 @@ describe("migrateAgentNames", () => {
test("preserves current agent names unchanged", () => {
// given: Config with current agent names
const agents = {
oracle: { model: "openai/gpt-5.4" },
oracle: { model: "openai/gpt-5.5-preview" },
librarian: { model: "google/gemini-3-flash" },
explore: { model: "opencode/gpt-5-nano" },
}
@@ -49,7 +49,7 @@ describe("migrateAgentNames", () => {
// then: Current names should remain unchanged
expect(changed).toBe(false)
expect(migrated["oracle"]).toEqual({ model: "openai/gpt-5.4" })
expect(migrated["oracle"]).toEqual({ model: "openai/gpt-5.5-preview" })
expect(migrated["librarian"]).toEqual({ model: "google/gemini-3-flash" })
expect(migrated["explore"]).toEqual({ model: "opencode/gpt-5-nano" })
})
@@ -620,7 +620,7 @@ describe("migrateModelVersions", () => {
test("leaves unknown model strings untouched", () => {
// given: Agent config with unknown model
const agents = {
oracle: { model: "openai/gpt-5.4", temperature: 0.5 },
oracle: { model: "openai/gpt-5.5-preview", temperature: 0.5 },
}
// when: Migrate model versions
@@ -629,7 +629,7 @@ describe("migrateModelVersions", () => {
// then: Config should remain unchanged
expect(changed).toBe(false)
const oracle = migrated["oracle"] as Record<string, unknown>
expect(oracle.model).toBe("openai/gpt-5.4")
expect(oracle.model).toBe("openai/gpt-5.5-preview")
})
test("handles agent config with no model field", () => {
@@ -665,7 +665,7 @@ describe("migrateModelVersions", () => {
const agents = {
sisyphus: { model: "openai/gpt-5.4-codex" },
prometheus: { model: "anthropic/claude-opus-4-5" },
oracle: { model: "openai/gpt-5.4" },
oracle: { model: "openai/gpt-5.5-preview" },
}
// when: Migrate model versions
@@ -675,7 +675,7 @@ describe("migrateModelVersions", () => {
expect(changed).toBe(true)
expect((migrated["sisyphus"] as Record<string, unknown>).model).toBe("openai/gpt-5.4-codex")
expect((migrated["prometheus"] as Record<string, unknown>).model).toBe("anthropic/claude-opus-4-7")
expect((migrated["oracle"] as Record<string, unknown>).model).toBe("openai/gpt-5.4")
expect((migrated["oracle"] as Record<string, unknown>).model).toBe("openai/gpt-5.5-preview")
})
test("handles empty object", () => {
@@ -1083,7 +1083,7 @@ describe("migrateConfigFile with backup", () => {
const rawConfig: Record<string, unknown> = {
agents: {
"multimodal-looker": { model: "anthropic/claude-haiku-4-5" },
oracle: { model: "openai/gpt-5.4" },
oracle: { model: "openai/gpt-5.5-preview" },
"my-custom-agent": { model: "google/gemini-3.1-pro" },
},
}
@@ -1099,7 +1099,7 @@ describe("migrateConfigFile with backup", () => {
const agents = rawConfig.agents as Record<string, Record<string, unknown>>
expect(agents["multimodal-looker"].model).toBe("anthropic/claude-haiku-4-5")
expect(agents.oracle.model).toBe("openai/gpt-5.4")
expect(agents.oracle.model).toBe("openai/gpt-5.5-preview")
expect(agents["my-custom-agent"].model).toBe("google/gemini-3.1-pro")
})
+7 -7
View File
@@ -7,19 +7,19 @@ import {
} from "./model-requirements"
describe("AGENT_MODEL_REQUIREMENTS", () => {
test("oracle has valid fallbackChain with gpt-5.4 as primary", () => {
test("oracle has valid fallbackChain with gpt-5.5 as primary", () => {
// given - oracle agent requirement
const oracle = AGENT_MODEL_REQUIREMENTS["oracle"]
// when - accessing oracle requirement
// then - fallbackChain exists with gpt-5.4 as first entry
// then - fallbackChain exists with gpt-5.5 as first entry
expect(oracle).toBeDefined()
expect(oracle.fallbackChain).toBeArray()
expect(oracle.fallbackChain.length).toBeGreaterThan(0)
const primary = oracle.fallbackChain[0]
expect(primary.providers).toContain("openai")
expect(primary.model).toBe("gpt-5.4")
expect(primary.model).toBe("gpt-5.5")
expect(primary.variant).toBe("high")
})
@@ -323,19 +323,19 @@ describe("CATEGORY_MODEL_REQUIREMENTS", () => {
expect(primary.providers[0]).toBe("openai")
})
test("deep has valid fallbackChain with gpt-5.4 as primary", () => {
test("deep has valid fallbackChain with gpt-5.5 as primary", () => {
// given - deep category requirement
const deep = CATEGORY_MODEL_REQUIREMENTS["deep"]
// when - accessing deep requirement
// then - fallbackChain exists with gpt-5.4 as first entry, medium variant
// then - fallbackChain exists with gpt-5.5 as first entry, medium variant
expect(deep).toBeDefined()
expect(deep.fallbackChain).toBeArray()
expect(deep.fallbackChain.length).toBeGreaterThan(0)
const primary = deep.fallbackChain[0]
expect(primary.variant).toBe("medium")
expect(primary.model).toBe("gpt-5.4")
expect(primary.model).toBe("gpt-5.5")
expect(primary.providers).toContain("openai")
expect(primary.providers).toContain("github-copilot")
})
@@ -597,7 +597,7 @@ describe("ModelRequirement type", () => {
})
describe("requiresModel field in categories", () => {
test("deep category no longer has requiresModel (gpt-5.4 is widely available)", () => {
test("deep category no longer has requiresModel (gpt-5.5 is widely available)", () => {
// given
const deep = CATEGORY_MODEL_REQUIREMENTS["deep"]