Skip to content

{"detail": "Bad Request"} #12119

Closed as duplicate
Closed as duplicate

Description

@MrToph

I keep receiving {"detail": "Bad Request"} in the middle of responses using the codex macOS app.

See feedback id 019c6a8d-617a-71d1-8b2f-a3fdaa9590b6.

happens with and without VPN.

Activity

  1. added
    bug
    app
    on Feb 18, 2026
  2. github-actions commented on Feb 18, 2026

    @github-actions
    Contributor
  3. added
    agent
    and removed
    app
    on Feb 18, 2026
  4. etraut-openai commented on Feb 23, 2026

    @etraut-openai
    Contributor

    This appears to be correlated to unusually long sessions and/or user prompts. We're continuing to investigate.

    Closing as duplicate of #10571.

  5. Vintotan commented on Aug 1, 2026

    @Vintotan

    This issue occurs again.

    • Version 26.727.40816
    • Codex Desktop App
    • MacOS
    • Model 5.5 (High)
  6. IgnacioMonge commented on Aug 3, 2026

    @IgnacioMonge

    Same problem. MacOS 27.0 heta.
    Model 5.6 xhigh.
    Long session with Codex 1.4.6.
    After closing de session and resuming it, it works again

  7. feawea commented on Aug 10, 2026

    @feawea

    Same problem
    MacOS 26.6
    Version 26.803.41515
    Model 5.6 Max

  8. roc1103 commented on Sep 2, 2026

    @roc1103

    Same problem here,
    macOS 27 beta 6
    GTP 5.6 Sol

  9. felixcat0 commented on Sep 3, 2026

    @felixcat0

    嘿朋友 我也遇到了这个情况
    要反复重启才可以macOS 26,6
    GPT 5.6 Sol high

  10. HonkCY commented on Sep 8, 2026

    @HonkCY

    在ChatGPT Work反覆遇到這個狀況
    macOS 26.5.1
    GPT-6 Astra 極高
    用最新的 ChatGPT/Codex desktop app

  11. MariosChartsias commented on Sep 13, 2026

    @MariosChartsias

    same problem
    windows 11
    GPT-6 Astra
    Codex cli

  12. lateshift commented on Oct 8, 2026

    @lateshift

    Same here 🙁
    OSX
    codex-cli 0.160.0
    GPT-6.1-Sol high

  13. Mitsi-ag commented on Nov 3, 2026

    @Mitsi-ag

    I'm sick of this error happens 10 times in a day, with terra 6.1 max

  14. SlovakLegend commented on Nov 5, 2026

    @SlovakLegend

    Happened to me today for the first time (multiple times though), I even created a new chat and pointed it to the old chat, then it ran a prompt, but on the second prompt it returned that error again. Sometimes, terminating the app and relaunching it helps, sometimes I have to log out and log back in. Original thread is still not working though.

    Codex Windows App Version 26.1029.61003
    Windows 11
    GPT-6 Astra Ultra

  15. neozlz commented on Nov 6, 2026

    @neozlz

    Same issue on November 6, 2026.

    Environment:

    • macOS
    • iTerm2
    • Codex CLI v0.167.0
    • GPT-6 Astra with xhigh reasoning

    An existing long-running conversation now fails on every message, even a simple prompt such as “Reply only OK.” It often reconnects first with:

    Stream disconnected before completion: IO error: Broken pipe (os error 32)

    Then it ends with:
    {"detail":"Bad Request"}

    What I tried:

    • Forking the affected conversation: the fork has the same problem.
    • Resuming the fork with explicit HTTP_PROXY, HTTPS_PROXY, and ALL_PROXY settings and --no-daemon: still fails.
    • Quitting and restarting iTerm2, then resuming the affected conversation: still fails.

    However, a completely fresh conversation using the same model and reasoning level successfully replies within about 5 seconds.

  16. SwaGGyZZJ commented on Nov 10, 2026

    @SwaGGyZZJ

    I have the same issue in the middle of a 20h long task. GPT6.1 Sol

  17. DejvyK commented on Nov 10, 2026

    @DejvyK

    I am joining on this issue.

    Win user. Codex CLI.
    correlated with resumed long sessions. maybe longs session in general.

  18. spearminttt commented on Nov 10, 2026

    @spearminttt

    Can report the same on Arch Linux, CLI 0.167.0, seems to happen on long sessions, when i paste in the same prompt on a fresh session it works fine

  19. RayHWMC commented on Nov 16, 2026

    @RayHWMC

    Same problem,
    macOS 15.7.6
    Version 26.1111.21308
    GPT 6.1 Terra

  20. aa211655-blip commented on Nov 17, 2026

    @aa211655-blip

    中文版 Codex App(桌機) 長對話常出現 {“detail”:”Bad Request”},推測是上下文加上圖片太大、在自動壓縮前就超過上限。手動輸入「/精簡」壓縮後即恢復正常。注意:中文版要打 /精簡,英文 /compact 無效。 可以試試

  21. SewSekSea commented on Nov 17, 2026

    @SewSekSea

    I can't get overnight runs done AT ALL. Even with my Codex using instructions to change model when encountering {"detail":"Bad Request"} it does not matter. The stupid {"detail":"Bad Request"} pops up anyways. And conversation size is a LIE. I track conversation size - I have my agents track their conversation size because I made a "Phoenix Recovery" skill that allows the task to restart a fresh conversation (with access to an SQlite ledger for memory of important tasks etc).

    I have had conversation sizes at 6.5gb and never a {"detail":"Bad Request"} error. I have brand new conversations of less than a day old, ,not a single image, running the required task of "pricing the character point cost of super abilities", and I still get {"detail":"Bad Request"}. In Terra-6; Sol-6; Sol-6.1; Astra. I cannot do my work in OVERPRICED 5.6 Sol (what is with that nonsense? Make it make sense please), nor Luna.

    So now my very important work is stalled by {"detail":"Bad Request"} errors.

    We need a LEGITIMATE REASON why this happens. "Conversation size" is a lie.

    Winbloze 11.

  22. Mactarvish commented on Nov 17, 2026

    @Mactarvish

    Same error on win11 26.1111.21308. That's bloody annoying.

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

    agentbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions