authorgravatar for 72155745+cn0ss@users.noreply.github.comNiklas Schmidt <72155745+cn0ss@users.noreply.github.com> 2026-08-20 23:28:34+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-08-20 21:28:34+00:00
log4bdbd8ce15fbeeb6514623704a203c43ad37d2cd
treede7119cd07e3f47125d9410880603bbad4a3ca9a
parent1afe5545b7d0397bbd6515981372072d146002ad
signature Signed by PGP key B5690EEEBB952194

fix(server): keep Daybreak models out of legacy models (#7659)


2 files changed, 18 insertions(+), 6 deletions(-)

apps/server/src/provider/Layers/CodexProvider.test.ts+11-5
...@@ -6,16 +6,22 @@ import {...@@ -6,16 +6,22 @@ import {
6 mapCodexModelCapabilities,6 mapCodexModelCapabilities,
7} from "./CodexProvider.ts";7} from "./CodexProvider.ts";
88
9it("keeps only the GPT-5.6 Codex family out of legacy models", () => {9it("keeps current Codex models out of legacy models", () => {
10 assert.deepStrictEqual(10 assert.deepStrictEqual(
11 ["gpt-5.6-luna", "gpt-5.6-terra", "gpt-5.6-sol", "gpt-5.4"].map((model) => [11 [
12 model,12 "gpt-5.6-luna",
13 isLegacyCodexModel(model),13 "gpt-5.6-terra",
14 ]),14 "gpt-5.6-sol",
15 "gpt-daybreak-blue-latest",
16 "gpt-daybreak-red-latest",
17 "gpt-5.4",
18 ].map((model) => [model, isLegacyCodexModel(model)]),
15 [19 [
16 ["gpt-5.6-luna", false],20 ["gpt-5.6-luna", false],
17 ["gpt-5.6-terra", false],21 ["gpt-5.6-terra", false],
18 ["gpt-5.6-sol", false],22 ["gpt-5.6-sol", false],
23 ["gpt-daybreak-blue-latest", false],
24 ["gpt-daybreak-red-latest", false],
19 ["gpt-5.4", true],25 ["gpt-5.4", true],
20 ],26 ],
21 );27 );
apps/server/src/provider/Layers/CodexProvider.ts+7-1
...@@ -62,7 +62,13 @@ const REASONING_EFFORT_LABELS: Readonly<Record<string, string>> = {...@@ -62,7 +62,13 @@ const REASONING_EFFORT_LABELS: Readonly<Record<string, string>> = {
62};62};
6363
64const DEFAULT_SERVICE_TIER_ID = "default";64const DEFAULT_SERVICE_TIER_ID = "default";
65const CURRENT_CODEX_MODELS = new Set(["gpt-5.6-luna", "gpt-5.6-terra", "gpt-5.6-sol"]);65const CURRENT_CODEX_MODELS = new Set([
66 "gpt-5.6-luna",
67 "gpt-5.6-terra",
68 "gpt-5.6-sol",
69 "gpt-daybreak-blue-latest",
70 "gpt-daybreak-red-latest",
71]);
6672
67export function isLegacyCodexModel(model: string): boolean {73export function isLegacyCodexModel(model: string): boolean {
68 return !CURRENT_CODEX_MODELS.has(model);74 return !CURRENT_CODEX_MODELS.has(model);