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:
@@ -23,7 +23,7 @@ describe("getHephaestusPromptSource", () => {
|
||||
expect(source3).toBe("gpt-5-4");
|
||||
});
|
||||
|
||||
test("returns 'gpt-5-4' for gpt-5.5 models", () => {
|
||||
test("returns 'gpt-5-5' for gpt-5.5 models", () => {
|
||||
// given
|
||||
const model1 = "openai/gpt-5.5";
|
||||
const model2 = "openai/gpt-5-5";
|
||||
@@ -35,9 +35,9 @@ describe("getHephaestusPromptSource", () => {
|
||||
const source3 = getHephaestusPromptSource(model3);
|
||||
|
||||
// then
|
||||
expect(source1).toBe("gpt-5-4");
|
||||
expect(source2).toBe("gpt-5-4");
|
||||
expect(source3).toBe("gpt-5-4");
|
||||
expect(source1).toBe("gpt-5-5");
|
||||
expect(source2).toBe("gpt-5-5");
|
||||
expect(source3).toBe("gpt-5-5");
|
||||
});
|
||||
|
||||
test("returns 'gpt-5-3-codex' for GPT 5.3 Codex models", () => {
|
||||
@@ -113,7 +113,7 @@ describe("getHephaestusPrompt", () => {
|
||||
expect(prompt).toContain("<tool_usage_rules>");
|
||||
});
|
||||
|
||||
test("GPT 5.5 model returns GPT-5.4 optimized prompt", () => {
|
||||
test("GPT 5.5 model returns GPT-5.5 optimized prompt", () => {
|
||||
// given
|
||||
const model = "openai/gpt-5.5";
|
||||
|
||||
@@ -122,8 +122,8 @@ describe("getHephaestusPrompt", () => {
|
||||
|
||||
// then
|
||||
expect(prompt).toContain("You build context by examining");
|
||||
expect(prompt).toContain("Never chain together bash commands");
|
||||
expect(prompt).toContain("<tool_usage_rules>");
|
||||
expect(prompt).toContain("Forbidden stops");
|
||||
expect(prompt).toContain("Three-attempt failure protocol");
|
||||
});
|
||||
|
||||
test("GPT 5.3-codex model returns GPT-5.3 prompt", () => {
|
||||
|
||||
@@ -196,8 +196,8 @@ describe("createBuiltinAgents with model overrides", () => {
|
||||
// #when
|
||||
const agents = await createBuiltinAgents([], {}, undefined, TEST_DEFAULT_MODEL, undefined, undefined, [], undefined, undefined)
|
||||
|
||||
// #then - oracle resolves via connected cache fallback to openai/gpt-5.4 (not system default)
|
||||
expect(agents.oracle.model).toBe("openai/gpt-5.4")
|
||||
// #then - oracle resolves via connected cache fallback to openai/gpt-5.5 (not system default)
|
||||
expect(agents.oracle.model).toBe("openai/gpt-5.5")
|
||||
expect(agents.oracle.reasoningEffort).toBe("medium")
|
||||
expect(agents.oracle.thinking).toBeUndefined()
|
||||
cacheSpy.mockRestore?.()
|
||||
@@ -223,14 +223,14 @@ describe("createBuiltinAgents with model overrides", () => {
|
||||
const providerModelsSpy = spyOn(connectedProvidersCache, "readProviderModelsCache").mockReturnValue(null)
|
||||
const fetchSpy = spyOn(shared, "fetchAvailableModels").mockResolvedValue(new Set())
|
||||
const overrides = {
|
||||
oracle: { model: "openai/gpt-5.4" },
|
||||
oracle: { model: "openai/gpt-5.5" },
|
||||
}
|
||||
|
||||
// #when
|
||||
const agents = await createBuiltinAgents([], overrides, undefined, TEST_DEFAULT_MODEL, undefined, undefined, [], undefined, undefined)
|
||||
|
||||
// #then
|
||||
expect(agents.oracle.model).toBe("openai/gpt-5.4")
|
||||
expect(agents.oracle.model).toBe("openai/gpt-5.5")
|
||||
expect(agents.oracle.reasoningEffort).toBe("medium")
|
||||
expect(agents.oracle.textVerbosity).toBe("high")
|
||||
expect(agents.oracle.thinking).toBeUndefined()
|
||||
@@ -524,7 +524,7 @@ describe("createBuiltinAgents without systemDefaultModel", () => {
|
||||
|
||||
// #then - connected cache enables model resolution despite no systemDefaultModel
|
||||
expect(agents.oracle).toBeDefined()
|
||||
expect(agents.oracle.model).toBe("openai/gpt-5.4")
|
||||
expect(agents.oracle.model).toBe("openai/gpt-5.5")
|
||||
cacheSpy.mockRestore?.()
|
||||
providerModelsSpy.mockRestore()
|
||||
fetchSpy.mockRestore()
|
||||
@@ -541,7 +541,7 @@ describe("createBuiltinAgents without systemDefaultModel", () => {
|
||||
|
||||
// #then
|
||||
expect(agents.oracle).toBeDefined()
|
||||
expect(agents.oracle.model).toBe("openai/gpt-5.4")
|
||||
expect(agents.oracle.model).toBe("openai/gpt-5.5")
|
||||
} finally {
|
||||
fetchSpy.mockRestore()
|
||||
cacheSpy.mockRestore()
|
||||
@@ -689,7 +689,7 @@ describe("createBuiltinAgents with requiresProvider gating (hephaestus)", () =>
|
||||
|
||||
// #then
|
||||
expect(agents.hephaestus).toBeDefined()
|
||||
expect(agents.hephaestus.model).toBe("openai/gpt-5.4")
|
||||
expect(agents.hephaestus.model).toBe("openai/gpt-5.5")
|
||||
} finally {
|
||||
cacheSpy.mockRestore()
|
||||
fetchSpy.mockRestore()
|
||||
|
||||
Reference in New Issue
Block a user