From f49afe7b913d7564550055008e9e04fa9950dff8 Mon Sep 17 00:00:00 2001 From: 4rcadia <97033226+Arcadi4@users.noreply.github.com> Date: Thu, 30 Apr 2026 23:57:58 -0400 Subject: [PATCH] refactor(agents): Add "max" to all codebase reasoning enums accordingly --- src/config/schema/agent-overrides.ts | 2 +- src/config/schema/categories.ts | 2 +- src/config/schema/fallback-models.ts | 2 +- src/shared/model-capability-heuristics.ts | 2 +- src/shared/model-settings-compatibility.ts | 10 +++++----- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/config/schema/agent-overrides.ts b/src/config/schema/agent-overrides.ts index ac560cbd5..cbf995392 100644 --- a/src/config/schema/agent-overrides.ts +++ b/src/config/schema/agent-overrides.ts @@ -35,7 +35,7 @@ export const AgentOverrideConfigSchema = z.object({ }) .optional(), /** Reasoning effort level (OpenAI). Overrides category and default settings. */ - reasoningEffort: z.enum(["none", "minimal", "low", "medium", "high", "xhigh"]).optional(), + reasoningEffort: z.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(), /** Text verbosity level. */ textVerbosity: z.enum(["low", "medium", "high"]).optional(), /** Provider-specific options. Passed directly to OpenCode SDK. */ diff --git a/src/config/schema/categories.ts b/src/config/schema/categories.ts index a7ad4c0b4..4703e7079 100644 --- a/src/config/schema/categories.ts +++ b/src/config/schema/categories.ts @@ -16,7 +16,7 @@ export const CategoryConfigSchema = z.object({ budgetTokens: z.number().optional(), }) .optional(), - reasoningEffort: z.enum(["none", "minimal", "low", "medium", "high", "xhigh"]).optional(), + reasoningEffort: z.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(), textVerbosity: z.enum(["low", "medium", "high"]).optional(), tools: z.record(z.string(), z.boolean()).optional(), prompt_append: z.string().optional(), diff --git a/src/config/schema/fallback-models.ts b/src/config/schema/fallback-models.ts index deca94d5f..1ad3eb960 100644 --- a/src/config/schema/fallback-models.ts +++ b/src/config/schema/fallback-models.ts @@ -3,7 +3,7 @@ import { z } from "zod" export const FallbackModelObjectSchema = z.object({ model: z.string(), variant: z.string().optional(), - reasoningEffort: z.enum(["none", "minimal", "low", "medium", "high", "xhigh"]).optional(), + reasoningEffort: z.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(), temperature: z.number().min(0).max(2).optional(), top_p: z.number().min(0).max(1).optional(), maxTokens: z.number().optional(), diff --git a/src/shared/model-capability-heuristics.ts b/src/shared/model-capability-heuristics.ts index d1eba7dd7..882fe81ec 100644 --- a/src/shared/model-capability-heuristics.ts +++ b/src/shared/model-capability-heuristics.ts @@ -32,7 +32,7 @@ export const HEURISTIC_MODEL_FAMILY_REGISTRY: ReadonlyArray