mirror of
https://github.com/hanzoai/opencode-openai-codex-auth.git
synced 2026-09-24 17:01:02 +00:00
Codex CLI does not provide a 'minimal' reasoning effort preset for gpt-5-codex (only low/medium/high - see model_presets.rs:20-40). When users configure reasoningEffort: 'minimal' for gpt-5-codex, normalize it to 'low' to prevent unsupported configuration. - Add validation in getReasoningConfig() to detect and normalize - Add test case to verify normalization works correctly - Prevents potential errors when backend receives unsupported effort level Addresses feedback from GPT-5 Codex code review.