fix(codex): translate minimal thinking for modern models

Fixes #71946
This commit is contained in:
hcl
2026-04-26 13:40:53 +08:00
committed by GitHub
parent 036b422fc6
commit c5c40b22af
4 changed files with 80 additions and 4 deletions

View File

@@ -211,7 +211,11 @@ function isKnownXHighCodexModel(modelId: string): boolean {
);
}
function isModernCodexModel(modelId: string): boolean {
// Exported so adapter request paths (thread-lifecycle.resolveReasoningEffort)
// can branch on model-family enum support: modern Codex models use the
// none/low/medium/high/xhigh effort enum and reject "minimal", which is the
// CLI default. (#71946)
export function isModernCodexModel(modelId: string): boolean {
const lower = modelId.trim().toLowerCase();
return (
lower === "gpt-5.5" || lower === "gpt-5.4" || lower === "gpt-5.4-mini" || lower === "gpt-5.2"