Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(codex): read an empty per-model effort list as none, so a model keeps the engine's levels
milind-soni3316fd75dcd3
diff --git a/server/startup-model-catalog.test.ts b/server/startup-model-catalog.test.tsindex 7559f2d1c4..bb6efb9a25 100644--- a/server/startup-model-catalog.test.ts+++ b/server/startup-model-catalog.test.ts@@ -118,7 +118,7 @@ describe("startup model catalogs", () => {expect(readStartupModelCache("org-blocked")?.options[1]).toEqual({ id: "b", label: "B", orgBlocked: true });});- it("preserves per-model effortLevels in the saved list so warm restarts do not leak unsupported efforts", () => {+ it("preserves per-model effortLevels in the saved list so warm restarts do not leak unsupported efforts, and reads an empty list as none", () => {writeStartupModelCache("per-model-efforts", {default: "gpt-5.4",options: [@@ -130,7 +130,7 @@ describe("startup model catalogs", () => {expect(readStartupModelCache("per-model-efforts")?.options).toEqual([{ id: "gpt-5.4", label: "GPT-5.4", effortLevels: ["low", "high", "ultra"] },{ id: "gpt-5.3", label: "GPT-5.3", effortLevels: ["low", "high"] },- { id: "gpt-4o", label: "GPT-4o", effortLevels: [] },+ { id: "gpt-4o", label: "GPT-4o" },]);});diff --git a/server/startup-model-catalog.ts b/server/startup-model-catalog.tsindex a629a0cffa..19410c27b9 100644--- a/server/startup-model-catalog.ts+++ b/server/startup-model-catalog.ts@@ -72,7 +72,7 @@ function catalogFrom(value: unknown): ModelCatalog | null {...(typeof option.contextWindow === "number" && Number.isFinite(option.contextWindow)? { contextWindow: option.contextWindow }: {}),- ...(effortLevels !== undefined ? { effortLevels } : {}),+ ...(effortLevels?.length ? { effortLevels } : {}),...(variants ? { variants } : {}),...(option.orgBlocked === true ? { orgBlocked: true as const } : {}),...(typeof option.needsCliUpdate === "string" ? { needsCliUpdate: option.needsCliUpdate } : {}),