[Bug]: Codex V2 adapter forces summary: "detailed", so Codex fails on every turn with Amazon Bedrock
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 84/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- aws, typescript
調査の方向性
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts の 763 行付近から始め、config/read が model_reasoning_summary をどのように公開しているか、また turn/start がどのように組み立てられているかを確認します。値が設定されている場合はリクエストでその設定値を使用し、設定されていない場合は detailed ではなく auto を使用するようにします。Bedrock の turn が成功し、設定された summary 値が尊重され、OpenAI の reasoning timeline にリグレッションが発生しなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Before submitting
- I searched existing issues and did not find a duplicate.
- 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.
- 主要言語
- TypeScript
- スター
- 24.8k
- フォーク
- 6.4k
- 平均マージ
- 8時間 58分
- マージ済み PR(30日)
- 278
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pingdotgg/t3code のほかの issue
-
[Bug]: Server git tests sign fixture commits with the developer's key when run from the repo rootオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
pingdotgg/t3code#17402 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
pingdotgg/t3code の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
cockpit-project/cockpit-machines#2835 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
cloudflare/kumo#866 ·
メンテナーはふだん 1 日以内に返信
-
area:connector bug
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
environment: OPENCODE_API_KEY is described as a Console service account key, but a Go subscription key works対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
tester-army/e2e#1015 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信