fix(codex): remove invalid xhigh effort option for gpt-5.5#2727
fix(codex): remove invalid xhigh effort option for gpt-5.5#2727vdekrijger wants to merge 1 commit into
Conversation
OpenAI's reasoning_effort does not accept "xhigh" for the gpt-5.5 family, so the Codex adapter should not offer it. Cap Codex reasoning effort at "high" for all models. Claude models (opus/fable) still support xhigh — that path is unchanged. Generated-By: PostHog Code Task-Id: f3fede9e-830a-4fe9-ba3f-d8024f37ff79
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
|
Problem
xhigh("Extra High") is not a validreasoning_effortvalue for the GPT 5.5 family in OpenAI's Codex API, but our app was advertising it as a selectable option — so picking it would fail.Changes
Removed the
xhighreasoning-effort tier from the Codex adapter; it now caps athighfor all models. Claude models (Opus/Fable) still supportxhigh, so that path is unchanged.How did you test this?
pnpm --filter @posthog/agent testfor the codex models, reasoning-effort, and agent suitespnpm --filter @posthog/workspace-server testfor the agent service suitepnpm --filter @posthog/agent typecheckAutomatic notifications
Created with PostHog Code from a Slack thread