From 3d5ec8628ece8705e5e23392ac922be8b4c962f8 Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Tue, 28 Jul 2026 01:54:16 +0800 Subject: [PATCH] feat(models): add `minimal` reasoning level to Codex client models - Introduced a new reasoning level, `minimal`, to the `codexClientAllowedReasoningLevels` map. - Updated response-building logic to include descriptive messaging for the `minimal` level. Closes: #4542 --- internal/client/codex/models/models.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/internal/client/codex/models/models.go b/internal/client/codex/models/models.go index adae25160..289ca448f 100644 --- a/internal/client/codex/models/models.go +++ b/internal/client/codex/models/models.go @@ -27,13 +27,14 @@ var ( ) var codexClientAllowedReasoningLevels = map[string]struct{}{ - "none": {}, - "low": {}, - "medium": {}, - "high": {}, - "xhigh": {}, - "max": {}, - "ultra": {}, + "none": {}, + "minimal": {}, + "low": {}, + "medium": {}, + "high": {}, + "xhigh": {}, + "max": {}, + "ultra": {}, } // BuildResponse builds a Codex client model response from available models. @@ -392,6 +393,8 @@ func codexClientReasoningDescription(level string) string { switch level { case "none": return "No reasoning" + case "minimal": + return "Fastest responses with minimal reasoning" case "low": return "Fast responses with lighter reasoning" case "medium":