chore: update GPT-5.2 references to GPT-5.4

Align runtime defaults, tests, docs, and generated artifacts with the newer GPT-5.4 baseline. Keep think-mode and prompt-routing expectations consistent after the model version bump.
This commit is contained in:
YeonGyu-Kim
2026-03-07 02:33:32 +09:00
parent d6d1f998d4
commit ea2585e01a
62 changed files with 478 additions and 479 deletions
+18 -18
View File
@@ -12,7 +12,7 @@ describe("mergeConfigs", () => {
const base = {
categories: {
general: {
model: "openai/gpt-5.2",
model: "openai/gpt-5.4",
temperature: 0.5,
},
quick: {
@@ -35,7 +35,7 @@ describe("mergeConfigs", () => {
const result = mergeConfigs(base, override);
// then general.model should be preserved from base
expect(result.categories?.general?.model).toBe("openai/gpt-5.2");
expect(result.categories?.general?.model).toBe("openai/gpt-5.4");
// then general.temperature should be overridden
expect(result.categories?.general?.temperature).toBe(0.3);
// then quick should be preserved from base
@@ -48,7 +48,7 @@ describe("mergeConfigs", () => {
const base: OhMyOpenCodeConfig = {
categories: {
general: {
model: "openai/gpt-5.2",
model: "openai/gpt-5.4",
},
},
};
@@ -57,7 +57,7 @@ describe("mergeConfigs", () => {
const result = mergeConfigs(base, override);
expect(result.categories?.general?.model).toBe("openai/gpt-5.2");
expect(result.categories?.general?.model).toBe("openai/gpt-5.4");
});
it("should use override categories when base has no categories", () => {
@@ -66,14 +66,14 @@ describe("mergeConfigs", () => {
const override: OhMyOpenCodeConfig = {
categories: {
general: {
model: "openai/gpt-5.2",
model: "openai/gpt-5.4",
},
},
};
const result = mergeConfigs(base, override);
expect(result.categories?.general?.model).toBe("openai/gpt-5.2");
expect(result.categories?.general?.model).toBe("openai/gpt-5.4");
});
});
@@ -81,7 +81,7 @@ describe("mergeConfigs", () => {
it("should deep merge agents", () => {
const base: OhMyOpenCodeConfig = {
agents: {
oracle: { model: "openai/gpt-5.2" },
oracle: { model: "openai/gpt-5.4" },
},
};
@@ -94,7 +94,7 @@ describe("mergeConfigs", () => {
const result = mergeConfigs(base, override);
expect(result.agents?.oracle?.model).toBe("openai/gpt-5.2");
expect(result.agents?.oracle?.model).toBe("openai/gpt-5.4");
expect(result.agents?.oracle?.temperature).toBe(0.5);
expect(result.agents?.explore?.model).toBe("anthropic/claude-haiku-4-5");
});
@@ -127,8 +127,8 @@ describe("parseConfigPartially", () => {
it("should return the full config when everything is valid", () => {
const rawConfig = {
agents: {
oracle: { model: "openai/gpt-5.2" },
momus: { model: "openai/gpt-5.2" },
oracle: { model: "openai/gpt-5.4" },
momus: { model: "openai/gpt-5.4" },
},
disabled_hooks: ["comment-checker"],
};
@@ -136,8 +136,8 @@ describe("parseConfigPartially", () => {
const result = parseConfigPartially(rawConfig);
expect(result).not.toBeNull();
expect(result!.agents?.oracle?.model).toBe("openai/gpt-5.2");
expect(result!.agents?.momus?.model).toBe("openai/gpt-5.2");
expect(result!.agents?.oracle?.model).toBe("openai/gpt-5.4");
expect(result!.agents?.momus?.model).toBe("openai/gpt-5.4");
expect(result!.disabled_hooks).toEqual(["comment-checker"]);
});
});
@@ -150,8 +150,8 @@ describe("parseConfigPartially", () => {
it("should preserve valid agent overrides when another section is invalid", () => {
const rawConfig = {
agents: {
oracle: { model: "openai/gpt-5.2" },
momus: { model: "openai/gpt-5.2" },
oracle: { model: "openai/gpt-5.4" },
momus: { model: "openai/gpt-5.4" },
prometheus: {
permission: {
edit: { "*": "ask", ".sisyphus/**": "allow" },
@@ -171,7 +171,7 @@ describe("parseConfigPartially", () => {
it("should preserve valid agents when a non-agent section is invalid", () => {
const rawConfig = {
agents: {
oracle: { model: "openai/gpt-5.2" },
oracle: { model: "openai/gpt-5.4" },
},
disabled_hooks: ["not-a-real-hook"],
};
@@ -179,7 +179,7 @@ describe("parseConfigPartially", () => {
const result = parseConfigPartially(rawConfig);
expect(result).not.toBeNull();
expect(result!.agents?.oracle?.model).toBe("openai/gpt-5.2");
expect(result!.agents?.oracle?.model).toBe("openai/gpt-5.4");
expect(result!.disabled_hooks).toEqual(["not-a-real-hook"]);
});
});
@@ -224,7 +224,7 @@ describe("parseConfigPartially", () => {
it("should ignore unknown keys and return valid sections", () => {
const rawConfig = {
agents: {
oracle: { model: "openai/gpt-5.2" },
oracle: { model: "openai/gpt-5.4" },
},
some_future_key: { foo: "bar" },
};
@@ -232,7 +232,7 @@ describe("parseConfigPartially", () => {
const result = parseConfigPartially(rawConfig);
expect(result).not.toBeNull();
expect(result!.agents?.oracle?.model).toBe("openai/gpt-5.2");
expect(result!.agents?.oracle?.model).toBe("openai/gpt-5.4");
expect((result as Record<string, unknown>)["some_future_key"]).toBeUndefined();
});
});