A desktop coding agent with free access to frontier models.
TypeScript
feat(models): GPT 6 Sol in the built-in omnirush.ai models
Samrat Talukdardb4743352294
diff --git a/apps/app/src/app/constants.test.ts b/apps/app/src/app/constants.test.tsindex 10b92230..2062394a 100644--- a/apps/app/src/app/constants.test.ts+++ b/apps/app/src/app/constants.test.ts@@ -24,7 +24,8 @@ describe("omnirush.ai extension catalog platform filter", () => {});test("recognises every omnirush.ai catalog model, not just the built-in ones", () => {- expect([...BUILTIN_OMNIRUSH_MODEL_IDS]).toEqual(["gpt-6-astra", "gpt-5.6-sol"]);+ expect([...BUILTIN_OMNIRUSH_MODEL_IDS]).toEqual(["gpt-6-astra", "gpt-6-sol", "gpt-5.6-sol"]);+ expect(isOmniRushModelID("gpt-6-sol")).toEqual(true);expect(isOmniRushModelID("gpt-5.6-sol")).toEqual(true);expect(isOmniRushModelID("GPT-6-Astra")).toEqual(true);expect(isOmniRushModelID("meta-muse-spark")).toEqual(true);diff --git a/apps/app/src/app/constants.ts b/apps/app/src/app/constants.tsindex 41a41b98..71ff5f4f 100644--- a/apps/app/src/app/constants.ts+++ b/apps/app/src/app/constants.ts@@ -23,7 +23,7 @@ export const HIDE_TITLEBAR_PREF_KEY = "omnirush.hideTitlebar";* offline); the first entry is the default. The catalog itself comes from the* server, so any other catalog model is just as valid.*/-export const BUILTIN_OMNIRUSH_MODEL_IDS = ["gpt-6-astra", "gpt-5.6-sol"] as const;+export const BUILTIN_OMNIRUSH_MODEL_IDS = ["gpt-6-astra", "gpt-6-sol", "gpt-5.6-sol"] as const;export const DEFAULT_MODEL: ModelRef = {providerID: "omnirush",diff --git a/apps/server/src/__fixtures__/omnirush-model-catalog.json b/apps/server/src/__fixtures__/omnirush-model-catalog.jsonindex 93cf5f03..cccab7e7 100644--- a/apps/server/src/__fixtures__/omnirush-model-catalog.json+++ b/apps/server/src/__fixtures__/omnirush-model-catalog.json@@ -30,6 +30,35 @@"file_input": true}},+ {+ "id": "gpt-6-sol",+ "object": "model",+ "created": 0,+ "owned_by": "omnirush",+ "display_name": "GPT 6 Sol",+ "default": false,+ "reasoning_levels": [+ "low",+ "high",+ "xhigh",+ "max"+ ],+ "family": "OpenAI",+ "status": "active",+ "order": 1,+ "api": "responses",+ "limits": {+ "context": 400000,+ "output": 128000+ },+ "capabilities": {+ "reasoning": true,+ "tool_call": true,+ "web_search": true,+ "image_input": true,+ "file_input": true+ }+ },{"id": "gpt-5.6-sol","object": "model",@@ -45,7 +74,7 @@],"family": "OpenAI","status": "active",- "order": 1,+ "order": 2,"api": "responses","limits": {"context": 400000,@@ -75,7 +104,7 @@],"family": "Meta Muse","status": "active",- "order": 20,+ "order": 3,"api": "responses","limits": {"context": 158000,@@ -105,7 +134,7 @@],"family": "Meta Muse","status": "active",- "order": 21,+ "order": 4,"api": "responses","limits": {"context": 158000,@@ -135,7 +164,7 @@],"family": "Meta Muse","status": "beta",- "order": 23,+ "order": 5,"api": "responses","limits": {"context": 99000,diff --git a/apps/server/src/__fixtures__/omnirush-model-catalog.ts b/apps/server/src/__fixtures__/omnirush-model-catalog.tsindex 4137c942..4d69e229 100644--- a/apps/server/src/__fixtures__/omnirush-model-catalog.ts+++ b/apps/server/src/__fixtures__/omnirush-model-catalog.ts@@ -23,7 +23,7 @@ export type BackendCatalogBody = { object: string; catalog_version: string; data/*** GET /omnirush/v1/models as the backend's catalog serves it to an account* with Meta Muse on (rendered from the backend's own catalog code): Astra- * (default) and Sol, then meta-muse-spark, muse-spark-1.1 and muse-spark-1.3+ * (default), GPT 6 Sol and GPT-5.6 Sol, then meta-muse-spark, muse-spark-1.1 and muse-spark-1.3* (beta, text only). muse-spark-1.2 is unlisted. A fresh copy on every call.*/export function backendCatalogBody(): BackendCatalogBody {diff --git a/apps/server/src/omnirush-model-catalog-sync.test.ts b/apps/server/src/omnirush-model-catalog-sync.test.tsindex 9dfaa0ce..cd32f69e 100644--- a/apps/server/src/omnirush-model-catalog-sync.test.ts+++ b/apps/server/src/omnirush-model-catalog-sync.test.ts@@ -113,10 +113,10 @@ function harness(config: ServerConfig, options: {return Object.assign(record, { sync });}-const MUSE_IDS = ["gpt-6-astra", "gpt-5.6-sol", "meta-muse-spark", "muse-spark-1.1", "muse-spark-1.3"];+const MUSE_IDS = ["gpt-6-astra", "gpt-6-sol", "gpt-5.6-sol", "meta-muse-spark", "muse-spark-1.1", "muse-spark-1.3"];/** The engine config file is written with sorted keys. */const MUSE_ENGINE_IDS = [...MUSE_IDS].sort();-const BUILTIN_ENGINE_IDS = ["gpt-5.6-sol", "gpt-6-astra"];+const BUILTIN_ENGINE_IDS = ["gpt-5.6-sol", "gpt-6-astra", "gpt-6-sol"];describe("omnirush model catalog sync", () => {test("a changed catalog is stored and ALWAYS reloads the engine, even when the config file already moved on", async () => {@@ -163,7 +163,7 @@ describe("omnirush model catalog sync", () => {test("an account without Muse keeps the built-ins and never reloads on first sync", async () => {const config = await setup();const body = backendCatalogBody();- const state = harness(config, { respond: async () => Response.json({ ...body, data: body.data.slice(0, 2) }) });+ const state = harness(config, { respond: async () => Response.json({ ...body, data: body.data.slice(0, 3) }) });expect(await state.sync.run()).toBe("unchanged");expect(state.reloads).toEqual([]);@@ -174,7 +174,7 @@ describe("omnirush model catalog sync", () => {const config = await setup();await writeOmniRushModelCatalog(config, sanitizeOmniRushModelCatalog(backendCatalogBody())!);const body = backendCatalogBody();- const state = harness(config, { respond: async () => Response.json({ ...body, data: body.data.slice(0, 2) }) });+ const state = harness(config, { respond: async () => Response.json({ ...body, data: body.data.slice(0, 3) }) });expect(await state.sync.run()).toBe("applied");expect(state.reloads).toEqual([BUILTIN_ENGINE_IDS]);diff --git a/apps/server/src/omnirush-model-catalog.test.ts b/apps/server/src/omnirush-model-catalog.test.tsindex 516562a5..2888d49b 100644--- a/apps/server/src/omnirush-model-catalog.test.ts+++ b/apps/server/src/omnirush-model-catalog.test.ts@@ -60,10 +60,10 @@ function keyPaths(value: unknown, prefix = ""): string[] {describe("omnirush model catalog sanitizer", () => {test("reads the backend catalog: Astra first and default, Muse under its family with its own efforts", () => {const catalog = sanitizeOmniRushModelCatalog(backendCatalogBody());- expect(catalog?.map((model) => model.id)).toEqual(["gpt-6-astra", "gpt-5.6-sol", "meta-muse-spark", "muse-spark-1.1", "muse-spark-1.3"]);+ expect(catalog?.map((model) => model.id)).toEqual(["gpt-6-astra", "gpt-6-sol", "gpt-5.6-sol", "meta-muse-spark", "muse-spark-1.1", "muse-spark-1.3"]);expect(catalog && omnirushDefaultModelId(catalog)).toBe("gpt-6-astra");expect(catalog?.filter((model) => model.default).map((model) => model.id)).toEqual(["gpt-6-astra"]);- expect(catalog?.[4]).toEqual({+ expect(catalog?.[5]).toEqual({id: "muse-spark-1.3",display_name: "Meta Muse Spark 1.3",family: "Meta Muse",@@ -75,9 +75,9 @@ describe("omnirush model catalog sanitizer", () => {});});- test("Astra and Sol from the backend equal the built-in catalog, so a Muse-less account never reloads", () => {+ test("Astra, GPT 6 Sol and GPT-5.6 Sol from the backend equal the built-in catalog, so a Muse-less account never reloads", () => {const body = backendCatalogBody();- const openaiOnly = { ...body, data: body.data.slice(0, 2) };+ const openaiOnly = { ...body, data: body.data.slice(0, 3) };const catalog = sanitizeOmniRushModelCatalog(openaiOnly);expect(catalog).not.toBeNull();expect(canonicalOmniRushModelCatalog(catalog!)).toBe(canonicalOmniRushModelCatalog(builtinOmniRushModelCatalog()));@@ -152,17 +152,29 @@ describe("omnirush model catalog sanitizer", () => {}]);});- test("an older backend's four fields give Astra and Sol their v1.0.9 metadata", () => {+ test("an older backend's four fields give Astra and both Sols their v1.0.9 metadata", () => {const catalog = sanitizeOmniRushModelCatalog({object: "list",data: [{ id: "gpt-6-astra", display_name: "GPT 6 Astra", default: true, reasoning_levels: ["low", "high", "xhigh", "max"] },+ { id: "gpt-6-sol", display_name: "GPT 6 Sol", default: false, reasoning_levels: ["low", "high", "xhigh", "max"] },{ id: "gpt-5.6-sol", display_name: "GPT-5.6 Sol", default: false, reasoning_levels: ["low", "high", "xhigh", "max"] },],});expect(catalog).toEqual(builtinOmniRushModelCatalog());});+ test("the built-ins list Astra, GPT 6 Sol, GPT-5.6 Sol; a backend without GPT 6 Sol serves just the other two", () => {+ expect(builtinOmniRushModelCatalog().map((model) => [model.id, model.display_name, model.default])).toEqual([+ ["gpt-6-astra", "GPT 6 Astra", true],+ ["gpt-6-sol", "GPT 6 Sol", false],+ ["gpt-5.6-sol", "GPT-5.6 Sol", false],+ ]);+ const body = backendCatalogBody();+ const catalog = sanitizeOmniRushModelCatalog({ ...body, data: body.data.filter((model) => model.id === "gpt-6-astra" || model.id === "gpt-5.6-sol") });+ expect(catalog).toEqual(builtinOmniRushModelCatalog().filter((model) => model.id !== "gpt-6-sol"));+ });+test("keeps exactly one default, and at most 32 models", () => {const many = Array.from({ length: 40 }, (_, index) => ({ id: `model-${index}`, display_name: `Model ${index}`, default: index >= 3 }));const catalog = sanitizeOmniRushModelCatalog({ data: many });diff --git a/apps/server/src/omnirush-model-catalog.ts b/apps/server/src/omnirush-model-catalog.tsindex 3cd6a628..95fa343e 100644--- a/apps/server/src/omnirush-model-catalog.ts+++ b/apps/server/src/omnirush-model-catalog.ts@@ -10,7 +10,7 @@** The last good catalog is kept at <runtimeStorageDir>/omnirush-model-catalog.json.* Without one (first run, offline, or a backend that fails) the engine gets- * the built-in Astra and Sol, exactly as v1.0.9 declared them.+ * the built-in Astra, GPT 6 Sol and GPT-5.6 Sol (the v1.0.9 metadata).*/import { randomUUID } from "node:crypto";import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";@@ -78,10 +78,14 @@ function catalogModel(};}-/** Astra and Sol with their v1.0.9 metadata, Astra the default. */+/**+ * The Codex-route models before the first sync: Astra (the default), GPT 6+ * Sol and GPT-5.6 Sol, with the v1.0.9 metadata (same efforts as Astra).+ */export function builtinOmniRushModelCatalog(): OmniRushModelCatalog {return [catalogModel("gpt-6-astra", "GPT 6 Astra", PROVIDER_FAMILY, true),+ catalogModel("gpt-6-sol", "GPT 6 Sol", PROVIDER_FAMILY, false),catalogModel("gpt-5.6-sol", "GPT-5.6 Sol", PROVIDER_FAMILY, false),];}diff --git a/apps/server/src/omnirush-runtime-config.test.ts b/apps/server/src/omnirush-runtime-config.test.tsindex 6c52ed9a..49e17ae6 100644--- a/apps/server/src/omnirush-runtime-config.test.ts+++ b/apps/server/src/omnirush-runtime-config.test.ts@@ -197,10 +197,11 @@ describe("omnirush runtime config file", () => {.filter(([, options]) => options.disabled !== true).map(([key]) => key);- expect(Object.keys(models)).toEqual(["gpt-6-astra", "gpt-5.6-sol"]);+ expect(Object.keys(models)).toEqual(["gpt-6-astra", "gpt-6-sol", "gpt-5.6-sol"]);expect(models["gpt-6-astra"]).toMatchObject({ name: "GPT 6 Astra", reasoning: true, tool_call: true, variants });+ expect(models["gpt-6-sol"]).toMatchObject({ name: "GPT 6 Sol", reasoning: true, tool_call: true, variants });expect(models["gpt-5.6-sol"]).toMatchObject({ name: "GPT-5.6 Sol", reasoning: true, tool_call: true, variants });- for (const id of ["gpt-6-astra", "gpt-5.6-sol"]) {+ for (const id of ["gpt-6-astra", "gpt-6-sol", "gpt-5.6-sol"]) {expect(Object.keys(models[id]!.variants as object).sort()).toEqual(Object.keys(variants).sort());expect(enabledVariants(models[id]!)).toEqual(["low", "high", "xhigh", "max"]);}@@ -467,7 +468,7 @@ function v109OmniRushProvider(baseURL: string) {name: "omnirush.ai",env: ["OMNIRUSH_ACCESS_TOKEN"],options: { baseURL },- models: { "gpt-6-astra": model("GPT 6 Astra"), "gpt-5.6-sol": model("GPT-5.6 Sol") },+ models: { "gpt-6-astra": model("GPT 6 Astra"), "gpt-6-sol": model("GPT 6 Sol"), "gpt-5.6-sol": model("GPT-5.6 Sol") },};}@@ -490,14 +491,14 @@ describe("omnirush runtime config from the model catalog", () => {};}- test("Astra and Sol render exactly as in v1.0.9: built-in, from the new backend, and from an older one", () => {+ test("Astra and both Sols render exactly as in v1.0.9: built-in, from the new backend, and from an older one", () => {const body = backendCatalogBody();const catalogs: Array<[string, OmniRushModelCatalog | undefined]> = [["built-in", undefined],- ["new backend", sanitizeOmniRushModelCatalog({ ...body, data: body.data.slice(0, 2) })!],+ ["new backend", sanitizeOmniRushModelCatalog({ ...body, data: body.data.slice(0, 3) })!],["older backend", sanitizeOmniRushModelCatalog({object: "list",- data: body.data.slice(0, 2).map(({ id, display_name, reasoning_levels }) => ({ id, display_name, default: id === "gpt-6-astra", reasoning_levels })),+ data: body.data.slice(0, 3).map(({ id, display_name, reasoning_levels }) => ({ id, display_name, default: id === "gpt-6-astra", reasoning_levels })),})!],];for (const [source, catalog] of catalogs) {@@ -512,7 +513,7 @@ describe("omnirush runtime config from the model catalog", () => {signIn(config);const before = await buildOmniRushRuntimeConfig(config);const body = backendCatalogBody();- await writeOmniRushModelCatalog(config, sanitizeOmniRushModelCatalog({ ...body, data: body.data.slice(0, 2) })!);+ await writeOmniRushModelCatalog(config, sanitizeOmniRushModelCatalog({ ...body, data: body.data.slice(0, 3) })!);expect(await buildOmniRushRuntimeConfig(config)).toBe(before);});@@ -535,7 +536,7 @@ describe("omnirush runtime config from the model catalog", () => {};expect(parsed.model).toBe("omnirush/gpt-6-astra");- expect(Object.keys(models).sort()).toEqual(["gpt-5.6-sol", "gpt-6-astra", "meta-muse-spark", "muse-spark-1.1", "muse-spark-1.3"]);+ expect(Object.keys(models).sort()).toEqual(["gpt-5.6-sol", "gpt-6-astra", "gpt-6-sol", "meta-muse-spark", "muse-spark-1.1", "muse-spark-1.3"]);const { models: _v109Models, ...v109Plumbing } = v109OmniRushProvider("http://127.0.0.1:48123/omnirush-gateway/v1");const { models: _models, ...plumbing } = provider;expect(plumbing).toEqual(v109Plumbing);