Skip to content

Repeated HTTP 400 Bad Request in one development project across multiple conversations #57874

Open

Description

@mlgserve

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?

  1. Open Codex Desktop on Windows (Codex CLI version 0.164.0).
  2. Open an existing, active software-development project containing substantial source code and accumulated development history.
  3. Select gpt-6.1-sol with low reasoning effort.
  4. Continue normal development involving reading source files, running terminal commands, and editing code.
  5. After some successful operations, Codex intermittently displays {"detail":"Bad Request"} and interrupts the current turn.
  6. Retry or send a simple message such as "continue." The error frequently returns.
  7. 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:

POST https://chatgpt.com/backend-api/codex/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.

Image

Activity

  1. added
    app
    on Oct 29, 2026
  2. added
    bug
    windows-os
    connectivity
    on Oct 29, 2026
  3. tomasbarreiror commented on Oct 29, 2026

    @tomasbarreiror

    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

    • App About screen: ChatGPT — Powered by Codex 8 OWL, version 26.1023.51421, released Oct 27, 2026.
    • Windows desktop; using Codex in an existing local software-development project.
    • Observed with GPT-6.1 Sol and GPT-6 Luna; changing models did not eliminate the errors.

    Observed sequence

    1. A long-running development thread began showing Reconnecting 5/5 followed by {"detail":"Bad Request"}.
    2. Restarting the app and editing/resending the message in the original thread did not help. That thread also displayed Compaction interrupted and Error running remote compact task: {"detail":"Bad Request"}.
    3. Started a brand-new thread in the same local project: a simple Respond OK message succeeded, and a short read-only request to summarize a local report also succeeded.
    4. A longer tool-oriented development instruction then failed again with Reconnecting 5/5 and {"detail":"Bad Request"}; the UI had shown an initial progress message about reading the submitted instruction.
    5. Replaced it with a smaller tool-oriented task. Codex emitted a brief planning message before again ending with {"detail":"Bad Request"}.
    6. The user reports that an earlier local editor crash occurred during a separate investigation; no evidence links that crash to these HTTP/compaction errors.

    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.

  4. louispaulet commented on Oct 31, 2026

    @louispaulet

    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/responses across two conversations. Each returned HTTP 400 with the same response body: {"detail":"Bad Request"}.

    The two most recent failures were:

    • Nov 1, 00:11:39 CET — Cloudflare Ray ID a536570f6943d0be-CDG; x-oai-request-id b264065c-bb51-4b91-a6e2-47a714208bb5
    • Nov 1, 00:13:18 CET — Cloudflare Ray ID a536597be8cafc62-CDG; x-oai-request-id 5a062893-0645-4460-8e64-667ded3b686e

    The 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.

  5. statuscompleted-arch commented on Nov 5, 2026

    @statuscompleted-arch

    Additional Windows desktop reproduction in an image-generation workflow, with a temporary model-switch workaround.

    Observed sequence

    1. Start a fresh chat and request a batch of eight images. The first batch completes successfully.
    2. Request another batch in the same chat. The turn can fail with {"detail":"Bad Request"}, forcing me to retry or start another chat.
    3. Manual /compact has also failed with Error 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.

  6. Higgsinos commented on Nov 14, 2026

    @Higgsinos

    Additional reproduction report (Windows desktop, 2026-11-14; exact failure timestamp and app build not yet captured).

    Environment:

    • Platform: Windows desktop
    • Task type: local project / local development work
    • Authentication: ChatGPT account login (not a third-party API key)
    • Model: GPT-6 Astra
    • Usage indicator at the time: approximately 95% remaining

    Observed behavior:

    • While a task was partway through model generation, Codex displayed {"detail":"Bad Request"}.
    • Retrying/resending in the affected conversation immediately produced the same error.
    • The user reports the usage panel still showed 95% remaining, so this does not look like an ordinary exhausted-usage-limit case.
    • The Codex app version, exact occurrence timestamp, HTTP status/request ID, and whether the failure followed a local tool result or occurred during text-only generation have not yet been collected.

    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.

  7. Higgsinos commented on Nov 14, 2026

    @Higgsinos

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugconnectivitywindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions