Skip to content

fix(codex): timeouts for websockets#4979

Merged
mitsuhiko merged 4 commits into
mainfrom
fix/codex-websocket-idle-timeout
May 27, 2026
Merged

fix(codex): timeouts for websockets#4979
mitsuhiko merged 4 commits into
mainfrom
fix/codex-websocket-idle-timeout

Conversation

@mitsuhiko

@mitsuhiko mitsuhiko commented May 25, 2026

Copy link
Copy Markdown
Member

This is not going to fix #4945 but it's a divergence of now codex works. Basically codex forces a connection to time out after a period of inactivity, even if keepalive frames come in. Additionally we now also force a 15 second timeout on connect like codex does.

@mitsuhiko mitsuhiko force-pushed the fix/codex-websocket-idle-timeout branch from 3e0d875 to f4f23ad Compare May 26, 2026 21:46
@mitsuhiko mitsuhiko changed the title fix(codex): time out idle websockets fix(codex): timeouts for websockets May 26, 2026
@mitsuhiko mitsuhiko marked this pull request as ready for review May 26, 2026 22:09
@mitsuhiko mitsuhiko merged commit 493efd4 into main May 27, 2026
1 check passed
@mitsuhiko mitsuhiko deleted the fix/codex-websocket-idle-timeout branch May 27, 2026 10:11
@devxoul

devxoul commented May 27, 2026

Copy link
Copy Markdown

Do we need to re-open #4945 since it automatically closed?

hknet pushed a commit to hknet/pi-mono that referenced this pull request May 27, 2026
baiyuqing pushed a commit to baiyuqing/pi that referenced this pull request May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

openai-codex can hang on Working... with zero-usage aborted turns

2 participants