Skip to content

Make the Codex WebSocket response prelude timeout configurable #3976

Closed as not planned

Description

@linshenkx

The Codex WebSocket response prelude timeout is currently hardcoded to 30 seconds through CODEX_WS_RESPONSE_PRELUDE_TIMEOUT_MS. When it expires, the request fails with:

codex websocket response prelude timed out

Could this timeout be made configurable?

It would also help to clarify exactly which upstream event clears this timer, and whether legitimate upstream delays can cause requests to fail before that event arrives.

A documented configuration option would let users accommodate slower upstream responses while retaining a bounded timeout for stalled connections. Distinguishing this locally enforced timeout from an upstream-generated HTTP 504 would also make troubleshooting easier.

Activity

  1. added
    streaming
    on Sep 8, 2026
  2. github-actions commented on Sep 8, 2026

    @github-actions
    Contributor

    Issue closed: use an issue template

    Thanks for taking the time to submit this issue. It was closed automatically because it was not opened with a recognized issue template (Bug report, Feature request, Documentation, or Provider compatibility). Freeform and API-opened issues cannot skip this check.

    • This issue does not use a recognized issue template.

    Please edit the issue to add:

    • Open a new issue with the Bug report, Feature request, Documentation, or Provider compatibility template.
    • Or edit this issue so the body uses the template section headings for the kind of report you are filing.

    See the Contributing guide for details.

    Once the report passes the automated checks, it will be reopened automatically unless a maintainer has changed its state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    streaming

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions