mirror of
https://github.com/openai/codex.git
synced 2026-09-20 12:47:38 +00:00
## Why Clients need to know the incoming size limit for single-frame requests so they can reject oversized requests before the socket closes. ## What changed Add `x-codex-websocket-max-unfragmented-message-bytes` to successful control socket WebSocket handshake responses. Derive the advertised byte limit from the minimum configured frame and message size limits, using the same `WebSocketConfig` for the connection. ## Testing Extend the control socket upgrade test to verify that the header contains a numeric value matching the effective default limit. GitOrigin-RevId: c4f46d12e00e20f56d4c14a3e84f9fe6e2f020fa