- include `gpt-5.4` in Codex app model option coverage - only keep truly custom Cursor models in the custom model option list
Unified · Split
| @@ -33,6 +33,7 @@ describe("getAppModelOptions", () => { · 32 unmodified lines | ||
| 33 | 33 | const options = getAppModelOptions("codex", ["custom/internal-model"]); |
| 34 | 34 | |
| 35 | 35 | expect(options.map((option) => option.slug)).toEqual([ |
| 36 | + "gpt-5.4", | |
| 36 | 37 | "gpt-5.3-codex", |
| 37 | 38 | "gpt-5.3-codex-spark", |
| 38 | 39 | "gpt-5.2-codex", |
| @@ -5296,7 +5296,8 @@ function getCustomModelOptionsByProvider(settings: { · 5295 unmodified lines | ||
| 5296 | 5296 | cursor: [ |
| 5297 | 5297 | ...cursorFamilyOptions, |
| 5298 | 5298 | ...getAppModelOptions("cursor", settings.customCursorModels).filter( |
| 5299 | − (option) => !cursorFamilyOptions.some((family) => family.slug === option.slug), | |
| 5299 | + (option) => | |
| 5300 | + option.isCustom && !cursorFamilyOptions.some((family) => family.slug === option.slug), | |
| 5300 | 5301 | ), |
| 5301 | 5302 | ], |
| 5302 | 5303 | }; |