This commit is contained in:
Theo Browne committed 2026-02-08 00:15:07 -08:00
1 parent 733c4633bf
commit fdb654de45
16 files changed
+695 -458

No files matched your search

+22 -1
View File
@@ -1,6 +1,9 @@
import { describe, expect, it } from "vitest";
import { classifyCodexStderrLine } from "./codexAppServerManager";
import {
classifyCodexStderrLine,
normalizeCodexModelSlug,
} from "./codexAppServerManager";
describe("classifyCodexStderrLine", () => {
it("ignores empty lines", () => {
@@ -34,3 +37,21 @@ describe("classifyCodexStderrLine", () => {
});
});
});
describe("normalizeCodexModelSlug", () => {
it("maps 5.3 aliases to gpt-5.3-codex", () => {
expect(normalizeCodexModelSlug("5.3")).toBe("gpt-5.3-codex");
expect(normalizeCodexModelSlug("gpt-5.3")).toBe("gpt-5.3-codex");
});
it("prefers codex id when model differs", () => {
expect(normalizeCodexModelSlug("gpt-5.3", "gpt-5.3-codex")).toBe(
"gpt-5.3-codex",
);
});
it("keeps non-aliased models as-is", () => {
expect(normalizeCodexModelSlug("gpt-5.2-codex")).toBe("gpt-5.2-codex");
expect(normalizeCodexModelSlug("gpt-5.2")).toBe("gpt-5.2");
});
});