[Bug] Repeated native Sol HTTP 400 entries when using V2 plaintext (2.100.4 / Windows)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start by tracing the native Responses route and V2 plaintext compatibility handling; the issue names no implementation files or tests, so locate those entry points in the repository. Compare request handling and logs for the reported Sol 400s with successful requests, keeping the two routed Opus errors separate. Done means identifying the cause of the Sol failures and quota concern, or clarifying what evidence is needed to establish them.
索引モデルが issue の本文から書いたものです。
説明
Client or integration
Codex App
Area
Proxy and routing
Summary
When using V2 plaintext, the user repeatedly sees HTTP 400 entries for the native gpt-6.1-sol main task and reports unusually fast quota depletion. Existing usage logs confirm recurring Sol 400s alongside successful requests on OpenCodex 2.100.4.
Expected: native Sol requests should operate normally with plaintext collaboration enabled. If a 400 is an expected negotiation/fallback step, the logs should distinguish it from a failed model request. Any unnecessary replay/recovery requests and their quota impact should be identifiable.
The user describes a 400 on every main-task run. This is a field report: recurrence is verified, but neither every-request failure nor a causal link between 400s and quota depletion has been established.
Reproduction
Observed workflow in existing Codex desktop chats:
- Select V2 plaintext in OpenCodex (
multiAgentMode: "v2-plaintext"). - Continue an existing chat using native
gpt-6.1-sol, reasoning efforthighormax, through the local proxy athttp://127.0.0.1:10100/v1. - Inspect OpenCodex
usage.jsonl: repeatedstatus: 400,errorCode: "invalid_request_error", andrequestedModel: "gpt-6.1-sol"appear alongside successful Sol requests. - The user additionally observes quota being consumed unusually quickly.
Examples from 2026-11-17 (UTC+08:00), after upgrading to 2.100.4:
| Local time | Requested effort | HTTP status |
|---|---|---|
| 09:30:25.724 | max | 400 |
| 09:30:37.785 | max | 400 |
| 09:30:50.460 | max | 400 |
| 09:32:11.244 | high | 400 |
| 09:32:54.981 | high | 400 |
| 09:34:04.743 | high | 400 |
No fresh inference reproduction, mode toggle, or service restart was performed for this report. Exact per-request effective mode and runtime catalog state were not captured. The settings changed between read-only snapshots, as documented below. Usage conversation identifiers have not been matched to native thread metadata; main-task attribution is user-reported.
Version
2.100.4 (@bitkyc08/opencodex); installed and running version verified during original log collection on 2026-11-17.
Operating system
Windows 11 Pro, version 10.0.26300, build 26300; PowerShell.
Provider and model
Native OpenAI / ChatGPT forwarding route, requested model gpt-6.1-sol, reasoning effort high and max.
The Sol 400 records show a native route decision selecting openai / gpt-6.1-sol, while their top-level provider/model fields are unknown. Successful upstream execution of those failed records is not established.
Logs or error output
Sanitized representative Sol record:
{
"client": "codex_desktop",
"admissionKind": "loopback",
"inboundProtocol": "responses",
"requestedModel": "gpt-6.1-sol",
"requestedEffort": "high",
"provider": "unknown",
"model": "unknown",
"status": 400,
"durationMs": 3,
"usageStatus": "unreported",
"errorCode": "invalid_request_error",
"failureStage": "headers-only",
"failureCause": "payload-rejected",
"routeDecision": {
"routeKind": "native",
"selected": {
"provider": "openai",
"model": "gpt-6.1-sol",
"reason": "native-family"
}
}
}
The exact Sol error response body has not been recovered. The generic telemetry fields alone do not prove whether an upstream call occurred.
Quota context from the existing logs, 2026-11-17 09:20–09:40 UTC+08, across multiple Sol conversations:
| Metric | Observed |
|---|---|
| Sol HTTP 200 records | 44 |
| Sol HTTP 400 records | 18 |
| Reported input tokens on successful records | 17,830,468 |
| Cached input tokens (subset of input) | 15,827,840 (~88.8%) |
| Input minus cached input | 2,002,628 |
| Output tokens | 29,644 |
| Reasoning output tokens (subset of output) | 11,581 |
None of these 44 successful records had more than one attempts entry; this does not exclude retries across separate records/client fallback. Sampled Sol 400s have usageStatus: "unreported", which proves neither a charge nor zero charge. These cumulative request token counters include repeated cached context; they are not unique context size, monetary charges, or an official ChatGPT allowance calculation. No quota-meter before/after measurements are available.
Please investigate whether history replay, cache behavior, recovery requests, or client fallback contributes to the reported quota depletion. These are diagnostic questions, not established causes.
Separate contemporaneous native Codex log errors at approximately 09:25:54 and 09:28:00:
{
"status": 400,
"error": {
"message": "Routed V2 worker task is encrypted for the native ChatGPT backend and cannot be read by the selected provider. Use plaintext V2 agent-message delivery or select a native ChatGPT model.",
"type": "invalid_request_error",
"code": "unreadable_encrypted_agent_task"
}
}
Thread metadata identifies these two errors as routed Opus subagents, not Sol parent errors. They must not be treated as the Sol root cause. Service logs also show plaintext encrypted_content to input_text compatibility rewrites around this period; same-request correlation was not established.
Screenshots and supporting files
Evidence above was extracted read-only from existing OpenCodex usage/service logs and native Codex logs. No screenshots or raw request bodies are attached.
Related background: #3661 (older routed-worker failures), #2495 (plaintext compatibility), and PR #7376 (V2 plaintext mode). A shared root cause is not asserted.
This body has been reformatted using the repository's current .github/ISSUE_TEMPLATE/bug_report.yml following the automated template rejection. Existing evidence and the user's quota-impact supplement are retained in this issue.
Redacted configuration
Earlier read-only snapshot during original collection:
{
"multiAgentMode": "v2-plaintext",
"plaintextV2AgentMessages": false
}
Installed src/config/multi-agent-surface.ts enables plaintext when either the separate flag is true or the resolved mode is v2-plaintext; the false flag alone does not disable plaintext in this mode.
A later snapshot showed multiAgentMode: "v1" with the separate flag absent. The reporting agent did not change settings during evidence collection. These snapshots do not establish effective mode at every failed request. Existing-chat history or stale host/catalog state may be relevant, but that has not been demonstrated. Please clarify any required refresh procedure when selecting plaintext mode.
Checks
- I searched existing issues and documentation.
- I removed secrets, tokens, account details, request credentials, and personal data.
- 主要言語
- TypeScript
- スター
- 16.9k
- フォーク
- 1.3k
- 平均マージ
- 1日 4時間
- マージ済み PR(30日)
- 814
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
lidge-jun/opencodex のほかの issue
-
bug gui platform
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
lidge-jun/opencodex#9172 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Feature]: Include provider, model and account label in the `upstream failure` service.log line対応中かも @EnesKartal が 4 日前に担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
lidge-jun/opencodex#9057 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offers対応中かも @sedoll が 6 日前に担当しました。 オープンcatalog provider provider-compatibility
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
lidge-jun/opencodex#9037 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug cli
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
lidge-jun/opencodex#9171 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
account-pool enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
lidge-jun/opencodex の issue をすべて見る
似ている issue
-
manually bump balena-preload to ^19.0.6対応中かも @shaunmulligan が今日担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 66/100
balena-io/balena-cli#3200 ·
メンテナーはふだん 1 日以内に返信
-
`MaterializedChatMessage._text` is quadratic in the number of text chunks (`+=` followed by `endsWith`), driving the extension host to heap OOM対応中かも @olegius88 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
microsoft/vscode-prompt-tsx#205 ·
-
triage
難易度 1/5 1時間未満 初心者へのやさしさ 64/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
melgarafael/DeskcommCRM#5340 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
ehmpathy/rhachet-roles-ehmpathy#1529 ·
メンテナーはふだん 1 日以内に返信