codex icon indicating copy to clipboard operation
codex copied to clipboard

Desktop follow-ups and question-card replies fail with HTTP 400: Responses WebSocket messages must have type response.create

Open zahmed-acasia opened this issue 1 month ago • 14 comments

What version of the Codex App are you using?

Desktop 26.1002.52244, build 13536, read from the installed application's Info.plist. Bundled CLI reports codex-cli 0.162.0-alpha.2.

The app is named ChatGPT on this installation and uses bundle identifier com.openai.codex. The affected diagnostic chat is a local Codex chat.

What subscription do you have?

ChatGPT sign-in. Exact subscription tier has not been supplied.

What platform is your computer?

macOS 26.1, build 25B78, Apple Silicon.

Darwin 25.1.0 arm64 arm

What issue are you seeing?

Desktop chats repeatedly fail with:

{
  "type": "error",
  "status": 400,
  "error": {
    "type": "invalid_request_error",
    "message": "Responses WebSocket messages must have type response.create."
  }
}

Local logs confirm five failures across four distinct chats on October 8, 2026. The failures occurred at 17:21:12, 17:25:21, 17:26:59, 22:13:25 and 22:17:50 Pakistan time, UTC+05:00. Each had a preceding TurnInput with mode: Steer and a continuation with has_pending_input=true.

One occurrence happened in the chat diagnosing this same error, immediately after answering an asynchronous question card. The user also reports the issue in other chats and says the Stop button had disappeared. UI state at the precise instant of failure was not independently captured.

What steps can reproduce the bug?

Observed sequence, rather than an independently repeatable test:

  1. Start a local desktop chat using ChatGPT authentication. The diagnostic chat used gpt-6.1-sol with high reasoning effort.
  2. While the assistant is working, answer an asynchronous question card or submit a follow-up.
  3. The app acknowledges turn/steer.
  4. A subsequent Responses WebSocket continuation fails with the HTTP 400 above.

Sanitized event sequence from the diagnostic occurrence:

17:26:59.461588  TurnInput received, mode: Steer
17:26:59.462     turn/steer RPC completed, errorCode=null
17:26:59.699804  has_pending_input=true; needs_follow_up=true
17:26:59.716329  Responses WebSocket stream_request
17:26:59.716489  Turn error: HTTP 400, invalid_request_error

The same turn reported full_context_window_limit_reached=false and token_limit_reached=false. Its logged total usage was 57,887 against a 244,800 auto-compaction threshold. These are diagnostic log fields, not a measurement of the exact submitted context.

What is the expected behavior?

Accepted follow-ups and question-card replies should continue the chat without a protocol error. If this route does not support steering, the client should preserve the input and use a supported continuation path or report the limitation.

Additional information

A steering/endpoint compatibility problem is suspected, but the outgoing WebSocket message type was not captured. The logs establish correlation, not the exact rejected payload or root cause. Web behavior and a fix have not been verified.

Related reports #39011 and #45497 concern disappearing messages and reconnects after steering. Neither describes this exact HTTP 400. Searches for the full error and response.steer found no exact match.

Raw logs, credentials, local paths and private chat text are omitted.

zahmed-acasia avatar Oct 08 '26 18:10 zahmed-acasia

Same issues today. In Codex App and Codex CLI

FOZERY avatar Oct 09 '26 19:10 FOZERY

I hit the same error and traced it on my machine. In my case the message did not come from OpenAI. It came from a local proxy, codex-router, which my ~/.codex/config.toml pointed to through openai_base_url = "http://127.0.0.1:4202/v1".

The exact string is in codex-router's src/responses-websocket.mjs:

if (!request || Array.isArray(request) || request.type !== "response.create") {
  this.sendError(400, {
    type: "invalid_request_error",
    message: "Responses WebSocket messages must have type response.create.",
  });

When instant_interrupt is enabled, Codex sends a second frame on the same socket when the user steers (a follow-up or a question-card reply):

{"type": "response.interrupt", "response_id": "...", "mode": "discard_partial_items"}

(codex-rs/codex-api/src/endpoint/responses_websocket.rs). The proxy rejects any frame that is not response.create. Codex receives that 400 and ends the turn. This matches the sequence in the report: TurnInput mode: Steer, has_pending_input=true, then the 400 right after stream_request.

After I removed codex-router, openai_base_url no longer pointed at it and the error stopped.

If you see this error, check whether openai_base_url or a custom model_providers entry points at a local proxy. Running codex features list shows whether instant_interrupt is on. I have not tested whether setting instant_interrupt = false under [features] also avoids it.

If anyone sees this with no proxy in between, the cause is something else and this issue should stay open for that case.


This comment was written by Claude (Anthropic).

ringomax avatar Oct 11 '26 06:10 ringomax

Follow-up from my setup after reading #6106105431:

  • The October 8 17:26:59 PKT log excerpt already in the report used gpt-6.1-sol: TurnInput(mode=Steer) → turn/steer success → has_pending_input=true → WebSocket stream_request → HTTP 400. The client trace does not include the rejected frame.
  • As of my check on October 11, ~/.codex/config.toml points openai_base_url and the codex-router provider at http://127.0.0.1:4202/v1. Therefore, the model ID alone does not establish that the October 8 request bypassed the proxy. I do not have a historical config snapshot proving which endpoint handled it then.
  • The local Router checkout I inspected today is codex-model-router 0.6.0, commit 00eed6eb; src/responses-websocket.mjs around line 829 rejects any parsed frame whose type is not response.create with this exact 400. This makes the proxy explanation plausible for my setup, but I cannot prove this checkout/build handled the October 8 failure.

Accordingly, the response.interrupt explanation in #6106105431 is plausible, but my logs do not confirm that frame. A trace that records the rejected frame type (without payload/secrets), and an A/B reproduction using the direct versus Router endpoint, would distinguish the proxy path from a native-endpoint bug.

MohamedMohsenX2 avatar Oct 11 '26 14:10 MohamedMohsenX2

I'm also experiencing this in the Codex desktop app on Windows.

Installed app package version: 26.1007.9446.0

Error: “Responses WebSocket messages must have type response.create.”

The first occurrence happened after a failed context compaction. Since then, the error has occurred intermittently with no consistent trigger.

It happened again on October 14, 2026, interrupting the active chat while Codex was helping me prepare this report.

Feedback ID: 01a13b68-e6b6-7142-88d4-bf04cf7d0b44

My current configuration points openai_base_url to a local endpoint. I haven't verified whether it also happens with a direct connection.

Expected behavior: Codex should continue or recover without this protocol error.

I don't have reliable reproduction steps, and I can't confirm whether the failed compaction caused the later occurrences.

rbrmafort avatar Oct 14 '26 17:10 rbrmafort

I've now adopted the upstream fix on Windows and passed a real desktop follow-up test.

My setup used gpt-6.1-sol through local codex-router. Codex desktop was 26.1007.21434 when checked on 13 October. The installed router baseline was 81cc805c. Its WebSocket bridge queued control messages behind the active response, then rejected response.interrupt with this exact error.

I initially tested a local drain workaround. That has now been replaced with a backport of the interruption fix from codex-router PR #1004, commit b850d97d, plus its SSE parser prerequisite 1972ac43. I retained the installed frame parser and existing dependencies.

After installation and restart on 15 October:

  • All three local model modifications and the untracked app file matched their saved hashes.
  • All 74 relevant tests passed before deployment. All 48 WebSocket tests passed against the installed module after restart.
  • The running router reported healthy. A zero-inference probe handled a late interrupt and continued on the same socket.
  • A real asynchronous question-card reply during an active desktop turn succeeded. The log recorded turn/steer with errorCode=null. The assistant processed the reply and continued without the WebSocket error.

The upstream cancellation and continuation regressions also pass. I have not captured the wire-level interrupt from the desktop test. One successful follow-up is not a long-term reliability claim.

Cheers, Andy

moinerus avatar Oct 15 '26 12:10 moinerus

I'm also encountering this error repeatedly in Codex Desktop on macOS (Apple Silicon):

Responses WebSocket messages must have type response.create.

Environment: Codex Desktop 26.1007.71326 (macOS, arm64). This happens frequently enough to seriously disrupt normal usage and ongoing chats. I haven't established whether a local proxy or custom endpoint is involved, so I'm not claiming a root cause.

Please prioritize making follow-ups/steering resilient, and ensure that a WebSocket protocol mismatch does not abort the turn or lose the user's input. A clear actionable error, rather than repeatedly interrupting work, would also help.

Reporting an additional affected user as of October 15, 2026.

kdu3142 avatar Oct 15 '26 21:10 kdu3142

Additional occurrence on October 17, 2026, in a Codex Remote chat viewed from iPhone. The connected Mac runs macOS 27.2 with Codex Desktop 26.1013.31256. While a turn was in progress, I sent a follow-up authorizing the proposed action. The iPhone displayed:

{"type":"error","status":400,"error":{"type":"invalid_request_error","message":"Responses WebSocket messages must have type response.create."}}

The screen still showed the turn as working and offered a Continue button. I have not confirmed whether the input was lost or what happened after that screen.

The Mac's current Codex configuration sets openai_base_url to http://127.0.0.1:4202/v1 and has a codex-router model provider. I have not captured the rejected WebSocket frame, confirmed the endpoint used by this specific turn, or checked whether the running router includes the fix from duolahypercho/codex-router#1004. This report adds the iPhone Remote occurrence; it does not establish a native OpenAI endpoint regression.

Expected: a follow-up accepted during an active Remote turn continues normally, or the client gives a recoverable error without losing the input. The screenshot contains private chat and host context, so I have transcribed only the relevant error here.

Ryanm218 avatar Oct 17 '26 17:10 Ryanm218

Additional occurrence on Windows, observed on 21 October 2026 (Europe/Madrid).

The user answered an asynchronous question card during an active local Codex conversation. The reply was acknowledged in the UI, then the following error appeared:

Responses WebSocket messages must have type response.create.

The user reports that the expected assistant response cannot be read, although executed-command cards remain visible. The supplied screenshot shows the question-card reply, this exact error, and command cards. The user says this has happened repeatedly, including earlier in the same task; frequency has not been measured.

This is an observed sequence, not a controlled reproduction or a confirmed root cause. The outgoing WebSocket payload, HTTP status, and diagnostic logs were not captured for this occurrence. The exact installed app build was not collected.

Reporting this Windows case at the user's explicit request. No workbook contents, local paths, credentials, or private conversation transcript are included.

edwx9 avatar Oct 21 '26 20:10 edwx9

Additional Windows occurrences on 29 October 2026 (Europe/Madrid), reported at the affected user's explicit request.

The desktop UI repeatedly displays:

Responses WebSocket messages must have type response.create.

The user supplied multiple screenshots during the same ongoing task. The parent chat stops continuing and the user has to send another ordinary text message to resume. Some research subagents can still finish and deliver results. During these occurrences the assistant was not using asynchronous question-card tools; the user's follow-ups were ordinary text. This is an observed sequence, not a controlled reproduction, and it does not establish that follow-ups are the only trigger.

A read-only check of the current local configuration found that openai_base_url points to an HTTP loopback endpoint, and a codex-router model-provider entry is present. This makes the proxy compatibility explanation discussed above relevant to investigate; it is NOT evidence of a regression at a direct OpenAI endpoint. The rejected WebSocket frame, active router build, exact desktop build, and diagnostic logs have not been captured for these occurrences, and no configuration has been changed.

Expected behavior: supported steering and ordinary follow-ups should continue reliably, or return a recoverable compatibility error without repeatedly terminating progress. Please keep the distinction between the desktop client's control frames and proxy support visible in diagnostics.

No screenshots, project contents, local filesystem paths, credentials, or private conversation transcript are included.

edwx9 avatar Oct 29 '26 09:10 edwx9

I'm also experiencing this repeatedly in the desktop app, including on 2 November 2026. It disrupts ongoing chats. The same error occurred again while the assistant was preparing this report, interrupting the reporting task itself; I supplied a second screenshot showing it.

Current environment checked on this installation:

  • Desktop app: 26.1027.51404, build 23880 (installed as ChatGPT, bundle ID com.openai.codex).
  • macOS 26.6.2, Apple Silicon (arm64).
  • Affected diagnostic logs identify model gpt-6.1-sol with ultra reasoning and ChatGPT authentication.

The UI displays:

Responses WebSocket messages must have type response.create.

A read-only check of local diagnostic logs confirmed repeated turn failures across multiple chats, including two occurrences on 2 November, with status: 400, type: invalid_request_error, and this exact message. One inspected failure was immediately preceded by a continuation reporting has_pending_input=true and a Responses WebSocket request.

My current configuration sets openai_base_url to http://127.0.0.1:4202/v1 and includes a codex-router provider. The proxy compatibility findings above are therefore relevant to this setup. I have not captured the rejected frame type, established whether the running router includes the upstream interruption fix, or reproduced this through a direct OpenAI endpoint. The current version/configuration do not establish the route used by every historical occurrence.

Expected: follow-ups and continuations should proceed reliably, or recover with an actionable compatibility error while preserving user input.

Posting at the affected user's explicit request. No raw logs, private chat text, credentials, or local filesystem paths are included.

erenbertr avatar Nov 02 '26 13:11 erenbertr

Additional recurrence reported on 4 November 2026 during an ongoing Codex Desktop task.

The user reports the exact error recurring repeatedly:

Responses WebSocket messages must have type response.create.

The active task stopped advancing, and the user had to send ordinary follow-up messages to get it moving again. This disrupted the task more than once.

For this occurrence, the desktop build, rejected WebSocket frame, endpoint/proxy in use, and diagnostic logs were not captured. This report does not establish a root cause or confirm that the same mechanism as earlier reports is responsible.

Expected behavior: an accepted follow-up continues the turn reliably, or the client recovers while preserving the user's input.

siddath avatar Nov 04 '26 09:11 siddath

Further user-reported recurrence on 4 November 2026, after the earlier same-day report.

The user says the exact error “Responses WebSocket messages must have type response.create.” appeared again during an ongoing Codex Desktop task and the assistant stopped advancing, requiring another ordinary follow-up to continue. No new desktop build, rejected frame type, endpoint/proxy selection, or diagnostic logs were captured for this recurrence.

This records the repeated user report; it does not establish a root cause or confirm the rejected frame. Expected behavior: accepted follow-ups preserve the user's input and continue, or recover with an actionable error without repeatedly terminating progress.

Posted at the affected user's explicit request. No private task content, paths, logs, or credentials are included.

siddath avatar Nov 04 '26 11:11 siddath

Diagnostic correction from 4 November 2026: I checked the active local setup behind this recurrence. Codex routes through a running localhost codex-model-router v0.6.0 process, instant_interrupt is enabled, and the installed WebSocket handler contains the exact create-only 400 message while lacking response.interrupt handling. This makes the local router the likely source of this installation's immediate 400; I did not capture the rejected frame, so that part remains an inference. I added the sanitized version/handler evidence to the existing codex-router report #1032. This does not rule out separate Codex client defects in setups without that proxy. No raw logs, credentials, or local paths are included.

siddath avatar Nov 04 '26 11:11 siddath

Additional user report, submitted on 2026-11-24: Codex displayed the exact same HTTP 400 error. The user supplied a screenshot and confirmed that the affected application is Codex.

Exact error transcribed from the screenshot:

{"type":"error","status":400,"error":{"type":"invalid_request_error","message":"Responses WebSocket messages must have type response.create."}}

Expected behavior: the request completes without this protocol error.

The screenshot establishes the displayed error only. The affected app version, selected model, triggering action, exact occurrence time, and reproduction frequency have not been established for this occurrence; this report does not independently confirm the steering/question-card trigger described above.

Posted on the affected user's behalf with their permission. The screenshot itself is not attached; its complete error text is included above.

Ryanm218 avatar Nov 24 '26 14:11 Ryanm218