[Bug]: Codex V2 adapter forces summary: "detailed", so Codex fails on every turn with Amazon Bedrock
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Configure Codex to use Amazon Bedrock's OpenAI-compatible Responses API as its model provider. I tested in
us-east-1withopenai.gpt-6.1-sol. - Optionally, set
model_reasoning_summary = "none"in~/.codex/config.toml. - On a build that includes de34391 (#2829), start a Codex thread with that model and send any message.
Expected behavior
The turn runs, as it did before orchestrator V2, and T3 uses model_reasoning_summary from the Codex config.
Actual behavior
Every turn fails with the error in the logs below, and setting model_reasoning_summary = "none" makes no difference.
The Codex V2 adapter sends summary: "detailed" in every turn/start request (CodexAdapterV2.ts#L763). Codex documents that field as "Override the reasoning summary for this turn and subsequent turns", so it replaces both the user's config and the model catalog's default of none. Before V2, T3 didn't send summary at all.
With openai.gpt-6.1-sol, Bedrock rejects detailed and concise and accepts auto and none. It also rejected detailed for every other OpenAI model I tried, from GPT-5.5 to GPT-6.1 Sol. Codex alone gives the same result:
codex exec -m openai.gpt-6.1-sol -c model_reasoning_summary=detailed "Reply with just: ok" # unsupported_parameter
codex exec -m openai.gpt-6.1-sol -c model_reasoning_summary=auto "Reply with just: ok" # ok
Suggested fix: when the user's Codex config sets model_reasoning_summary (returned by config/read), send that value. Otherwise, send auto instead of detailed. OpenAI documents auto as "the most detailed summarizer available for a model", and says it is equivalent to detailed for most reasoning models today, so the reasoning timeline keeps working on OpenAI. Bedrock accepts auto and returns summary: null.
Impact
Blocks work completely
Version or commit
main @ de34391 (#2829). The line is still on main at 8ed276c.
Environment
macOS 26, Codex CLI 0.160.0, Amazon Bedrock Responses API (us-east-1)
Logs or stack traces
{"error":{"code":"unsupported_parameter","message":"Unsupported parameter: 'reasoning.summary' is not supported with the 'openai.gpt-6.1-sol' model.","param":"reasoning.summary","type":"invalid_request_error"}}
Screenshots, recordings, or supporting files
No response
Workaround
None on V2, because T3 overrides the config value. A build from before #2829 works.
[!NOTE] Grok responding on behalf of Julius.
Triage
Thanks for the write-up, @yesiamdaniel! This is a real regression on current main (8ed276c246), not a Bedrock or Codex bug that T3 is just passing along.
buildCodexTurnStartParams always sends summary: "detailed" on turn/start, including for resumed threads:
https://github.com/pingdotgg/t3code/blob/8ed276c246b624631e7d39241ebfd22d8314cb68/apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts#L761-L763
That landed with orchestrator V2 in de34391 (#2829), and it was intentional: some model catalogs default summaries to "none", and T3 needs item/reasoning/summaryTextDelta for the reasoning timeline. But the Codex schema treats that field as an override for this turn and every turn after it (V2TurnStartParams.summary), and recorded threads echo it back on thread/settings/updated.
The V1 adapter didn't send summary at all. buildTurnStartParams on 024d495 (the parent of #2829) set the model, effort, approval, and sandbox, and left the summary alone:
https://github.com/pingdotgg/t3code/blob/024d49520eadb24cc2f2cef0b0a82c33f0290813/apps/server/src/provider/Layers/CodexSessionRuntime.ts#L661-L671
So neither model_reasoning_summary = "none" in ~/.codex/config.toml nor -c model_reasoning_summary=... in launch args can win, because the V2 adapter never calls config/read. CodexAdapterV2.test.ts also locks in the "detailed" override. That matches what you saw: every turn fails, and the config value makes no difference.
We didn't re-run this against Bedrock, but your codex exec pair isolates it well: the same model accepts auto and rejects detailed. OpenAI's reasoning guide says auto is the most detailed summarizer a model supports.
Omitting summary entirely wouldn't be the right fix, since that would drop the reasoning timeline on every catalog whose default is "none". A fix should:
- Send the user's
model_reasoning_summarywhen a user, project, or session config layer actually sets it.config/readwithincludeLayers: truereturns layer origins, so a catalog default of"none"shouldn't count as an explicit choice. - Otherwise send
"auto"instead of"detailed". - Update the
turn/starttest expectations that currently require"detailed".
On Bedrock, auto still returned summary: null in your check, so the timeline may stay empty there, but turns should run again.