Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
ChatGPT Powered by Codex & OWL Version 26.1023.50603 Released Oct 27, 2026
What subscription do you have?
Plus
What platform is your computer?
Microsoft Windows NT 10.0.19045.0 x64
What issue are you seeing?
[Windows][Codex] Repeated HTTP 400 Bad Request in one development project across multiple conversations
Environment
- Windows desktop
- Codex CLI: 0.164.0
- Model observed in failed turns:
gpt-6.1-sol, low reasoning - Authentication: ChatGPT
- Tested default connection behavior and custom ChatGPT HTTP provider with
supports_websockets = false
Problem
Codex repeatedly fails with {"detail":"Bad Request"} while working on an established development project.
This has recurred across approximately five successive conversations, including sessions using the CLI. Other Codex projects work normally.
Sometimes Codex successfully executes commands or modifies source files before the next model request fails. Even short continuation messages can trigger the error.
Confirmed network evidence
Codex's SQLite diagnostic logs confirm repeated HTTP 400 responses from:
POST https://chatgpt.com/backend-api/codex/responses
Two examples, October 29, 2026 (Europe/Sofia):
| Local time | HTTP status | Cloudflare Ray ID |
|---|---|---|
| 02:53:30 | 400 | a51e3413597d5275-SOF |
| 03:08:08 | 400 | a51e49835e3e2bd8-SOF |
Response: {"detail":"Bad Request"}
No application request ID was found in the inspected log entries.
Troubleshooting already performed
- Restarted the desktop application.
- Restored the previously successful HTTP-only provider configuration.
- Confirmed that the custom ChatGPT HTTP provider was displayed in the application.
- Repeated development in fresh conversations and previously through CLI.
- Verified that the error persists while other projects remain functional.
Expected behavior
Codex should continue an existing development session without rejecting requests or losing continuity following successful tool execution.
Actual behavior
Repeated HTTP 400 responses interrupt development, sometimes after local file modifications.
Request
Please investigate the server-side rejection reason using the timestamps and Cloudflare Ray IDs. In particular, determine whether project-specific request construction, accumulated conversation state, model/tool-response handling, or backend validation is causing these repeated failures.
Additional session and turn identifiers can be provided privately if needed.
What steps can reproduce the bug?
- Open Codex Desktop on Windows (Codex CLI version 0.164.0).
- Open an existing, active software-development project containing substantial source code and accumulated development history.
- Select gpt-6.1-sol with low reasoning effort.
- Continue normal development involving reading source files, running terminal commands, and editing code.
- After some successful operations, Codex intermittently displays {"detail":"Bad Request"} and interrupts the current turn.
- Retry or send a simple message such as "continue." The error frequently returns.
- Restart Codex or create a new conversation within the same project. Development may resume temporarily, but the problem eventually returns.
The problem has occurred across approximately five successive conversations, including CLI sessions. Other Codex projects operate normally.
The failure is intermittent and cannot yet be reproduced on every request.
What is the expected behavior?
Codex should reliably continue development within an existing project, execute tools, process their results, and generate responses without recurring HTTP 400 errors.
If a request is invalid, Codex should provide a meaningful diagnostic explaining the rejected parameter or condition, rather than returning only {"detail":"Bad Request"}.
Temporary network failures should not force users to abandon conversations, reconstruct project context, or repeat development tasks.
Completed source-code changes and conversation continuity should be preserved when a request fails.
Additional information
Environment
Windows
Codex CLI version: 0.164.0
Codex Desktop
Model: gpt-6.1-sol
Reasoning effort: Low
Authentication: ChatGPT
Project: Long-running software development (Fusion Composer Assistant)
Confirmed HTTP failures
Local Codex diagnostic database (.codex/logs_2.sqlite) records repeated responses:
HTTP 400 Bad Request
Response body: {"detail":"Bad Request"}
Examples from October 29, 2026 (Europe/Sofia):
02:53:30 — Cloudflare Ray ID: a51e3413597d5275-SOF
03:08:08 — Cloudflare Ray ID: a51e49835e3e2bd8-SOF
Conversation ID: 01a17939-d8b5-75f1-9c97-03504f763839
Corresponding turn IDs:
01a18523-ee33-7110-bc7a-a768dcafaa51
01a18531-252a-7960-897a-d3019455e891
Troubleshooting performed
Restarted Codex Desktop.
Tested an HTTP-only custom provider (supports_websockets = false).
Confirmed the HTTP-only provider was recognized by Codex.
Tried multiple replacement conversations, including CLI sessions.
Verified that other projects work normally.
The issue persists despite these measures.
Sometimes Codex executes commands or edits source files successfully before the next request fails. Repeated connection attempts (Reconnecting 5/5) have also been observed.
The issue appears associated with this development project, but the root cause remains unknown. Please investigate the request-validation failure using the supplied timestamps, conversation/turn IDs, and Cloudflare Ray IDs.

Activity
tomasbarreiror commentedon Oct 29, 2026
Additional Windows desktop reproduction observed October 29, 2026. This appears closely related to this issue; I cannot establish that the root cause is the same.
Environment
Observed sequence
Reconnecting 5/5followed by{"detail":"Bad Request"}.Compaction interruptedandError running remote compact task: {"detail":"Bad Request"}.Respond OKmessage succeeded, and a short read-only request to summarize a local report also succeeded.Reconnecting 5/5and{"detail":"Bad Request"}; the UI had shown an initial progress message about reading the submitted instruction.{"detail":"Bad Request"}.Impact / request
Repeated failed turns interrupt development even in a fresh thread, while simple read-only turns can succeed. Please investigate the backend's specific rejection reason and provide actionable diagnostics and a reliable recovery path. The generic 400 body alone is not enough to troubleshoot. Screenshots of the app version, reconnect errors, and failed compaction are available if maintainers request them.
No credentials, local paths, private project content, full chat histories, or session IDs are included in this public comment.
louispaulet commentedon Oct 31, 2026
Additional macOS desktop reproduction (Oct 31–Nov 1, 2026, Europe/Paris). In an existing local development project, my Codex diagnostics recorded 9 failed POSTs to
https://chatgpt.com/backend-api/codex/responsesacross two conversations. Each returned HTTP 400 with the same response body:{"detail":"Bad Request"}.The two most recent failures were:
a536570f6943d0be-CDG;x-oai-request-idb264065c-bb51-4b91-a6e2-47a714208bb5a536597be8cafc62-CDG;x-oai-request-id5a062893-0645-4460-8e64-667ded3b686eThe requests used ChatGPT authentication and GPT-6 Luna. Nearby requests in the same project did succeed, so this was intermittent. This looks like the same symptom; I can't establish whether the underlying cause is the same.
statuscompleted-arch commentedon Nov 5, 2026
Additional Windows desktop reproduction in an image-generation workflow, with a temporary model-switch workaround.
Observed sequence
{"detail":"Bad Request"}, forcing me to retry or start another chat./compacthas also failed withError running remote compact task: {"detail":"Bad Request"}.Temporary workaround
Switching models inside the same affected chat sometimes restores continuation. For example, when Terra returns the error, switching to Sol lets me continue. The error can recur later on Sol, and switching back to Terra helps again. I have been alternating between them to keep working rather than repeatedly abandoning the chat.
This is a temporary recovery, not a lasting fix, and I cannot reproduce the failure on every request. In an earlier inspected occurrence, the second batch failed after reviewing reference images, before image generation was called.
The repeated model switching and replacement chats substantially interrupt the workflow. Please investigate why changing the model can temporarily recover the same chat and provide a more actionable error or a supported recovery path. This appears related to the symptoms reported here, but I cannot establish that the underlying cause is the same.
Higgsinos commentedon Nov 14, 2026
Additional reproduction report (Windows desktop, 2026-11-14; exact failure timestamp and app build not yet captured).
Environment:
Observed behavior:
{"detail":"Bad Request"}.This appears symptomatically related to the Windows desktop / ChatGPT-authenticated local-project reports in this issue, but a shared root cause is not established. Please investigate whether the continuation request is being rejected by backend validation, client-side request serialization, or tool/turn state handling. An actionable error and a safe recovery path that preserves completed local changes would be valuable.
No account email, account identifiers, private project names/paths, prompts, source files, credentials, or raw logs are included.
Higgsinos commentedon Nov 14, 2026
Follow-up update (2026-11-14):
The user tested a brand-new Codex Desktop conversation using the same ChatGPT account and GPT-6 Astra. It returned the expected exact response ("OK") successfully. The previously affected local task then recovered and resumed.
This is useful evidence against an account-wide authentication block or general model-access restriction. The original failure may have been transient upstream/service instability or a request/session-specific continuation issue. The exact root cause remains unconfirmed because no HTTP request ID, timestamp, or client diagnostic log was captured.
Please treat the incident as recovered for now, while retaining the report as a record of the intermittent HTTP 400 symptom.