You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 320a3c0
Browse filesBrowse the repository at this point in the historyBrowse files
fix(codex-api): send keepalive pings on the Responses WebSocket
The Responses WebSocket pump loop only answered server pings; it never
initiated one and had no keepalive timer, so a quiet reasoning turn left
the socket fully idle. Proxies and CDNs in front of the endpoint
(Cloudflare's default is a 100s idle-WebSocket timeout) then close it
mid-turn, surfacing as "idle timeout waiting for websocket" and a
reconnect loop.
Add a keepalive arm to the pump select! that sends a Ping every 30s, well
under the idle window, plus a unit test asserting the pump emits a
client-initiated ping.
0 commit comments