Responses WebSocket: string input is rejected with "Input must be a list" on Codex OAuth accounts (HTTP path is fine)
问题 / Problem
On OpenAI OAuth (Codex protocol) accounts, a Responses WebSocket response.create whose input is a string fails upstream with:
{"type":"error","status":400,"error":{"type":"invalid_request_error","message":"Input must be a list"}}
The same body sent over HTTP /v1/responses succeeds, because the HTTP path converts a string input into a user message list in applyCodexOAuthTransform (see #919). The WebSocket ingress (ProxyResponsesWebSocketFromClient) forwards the frame without that conversion.
OAuth(Codex 协议)账号上,Responses WebSocket 的 response.create 如果 input 是字符串,上游会返回 Input must be a list;同样的请求走 HTTP 能成功,因为 HTTP 路径在 applyCodexOAuthTransform 中做了转换(#919),WS 入口没有。
复现 / Reproduce
- Use a key routed to an OpenAI OAuth account with Responses WebSocket v2 enabled.
- Connect to
wss://<host>/v1/responsesand send:{"type":"response.create","model":"<codex model>","generate":false,"input":"hello"} - The upstream returns
Input must be a listand the turn ends. Sending"input":[{"type":"message","role":"user","content":"hello"}]on the same connection type completes normally.
影响 / Impact
Some clients send a small string-input warmup frame right after the WS handshake. When it fails, they treat the provider as "WebSocket unsupported" and fall back to HTTP for hours, so those users never get the WS path (connection reuse and smaller per-turn uploads).
部分客户端握手后先发字符串 input 的预热帧,失败后会把该 provider 长时间降级回 HTTP,这些用户因此一直用不上 WS。
Observed on v0.2.25; the code path is unchanged on current main.