codex - 💡(How to fix) Fix Allow ChatGPT login users to force HTTPS/SSE transport [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19804Fetched 2026-04-28 06:36:49
View on GitHub
Comments
2
Participants
2
Timeline
8
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2closed ×1cross-referenced ×1

Root Cause

Users on networks where WebSocket is blocked or unreliable should not need to switch to API-key billing to make Codex usable. A HTTPS-only transport option would make the ChatGPT subscription path reliable in those environments and avoid repeated startup/request latency.

Fix Action

Fix / Workaround

For ChatGPT subscribers, using an API key is not an acceptable workaround because it moves the user onto a separate billing path. The ChatGPT login path should provide a reliable non-WebSocket transport option.

Code Example

[network]
transport = "https"

---

[network]
disable_websocket = true

---

responses_websockets      removed  false
responses_websockets_v2   removed  false
realtime_conversation     under development  false
RAW_BUFFERClick to expand / collapse

What happened?

I use Codex CLI with ChatGPT subscription login, not API-key billing. In my network environment, the WebSocket connection path appears to fail repeatedly before Codex eventually falls back to HTTPS/SSE. This creates a fixed delay every time the CLI starts or sends a request.

For ChatGPT subscribers, using an API key is not an acceptable workaround because it moves the user onto a separate billing path. The ChatGPT login path should provide a reliable non-WebSocket transport option.

Expected behavior

Codex should provide a user-facing configuration option to disable WebSocket transport and use HTTPS/SSE directly for ChatGPT-authenticated sessions.

For example:

[network]
transport = "https"

or:

[network]
disable_websocket = true

Additionally, if WebSocket fails once in a session or network environment, Codex should cache that failure and immediately use the fallback transport instead of retrying the same failing path several times on every attempt.

Actual behavior

Codex appears to attempt WebSocket first, retries multiple times, and only then falls back to HTTPS/SSE. I could not find a documented or discoverable way to force HTTPS-only transport.

Environment

  • Codex CLI version: 0.125.0
  • Auth mode: ChatGPT subscription login
  • Platform: macOS arm64

codex features list reports:

responses_websockets      removed  false
responses_websockets_v2   removed  false
realtime_conversation     under development  false

codex --help does not show an option such as --transport https, --no-websocket, or an equivalent configuration key.

Why this matters

Users on networks where WebSocket is blocked or unreliable should not need to switch to API-key billing to make Codex usable. A HTTPS-only transport option would make the ChatGPT subscription path reliable in those environments and avoid repeated startup/request latency.

extent analysis

TL;DR

Configure Codex to use HTTPS/SSE directly by adding a configuration option to disable WebSocket transport.

Guidance

  • Check the Codex configuration documentation for any updates on adding a transport or disable_websocket option in the [network] section of the configuration file.
  • Verify the output of codex features list to ensure that WebSocket-related features are not enabled.
  • Test adding a configuration option like [network] with transport = "https" or disable_websocket = true in the configuration file, as suggested in the issue, to see if it forces HTTPS-only transport.
  • If the above steps do not work, consider reaching out to the Codex development team to request an official configuration option for disabling WebSocket transport.

Example

[network]
transport = "https"

or

[network]
disable_websocket = true

Notes

The provided configuration options are based on the issue description and may not be officially supported by Codex. The effectiveness of these options may vary depending on the Codex version and configuration.

Recommendation

Apply workaround: Add a configuration option to disable WebSocket transport, as the issue implies that this would resolve the problem for ChatGPT subscribers with network environments that block or have unreliable WebSocket connections.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Codex should provide a user-facing configuration option to disable WebSocket transport and use HTTPS/SSE directly for ChatGPT-authenticated sessions.

For example:

[network]
transport = "https"

or:

[network]
disable_websocket = true

Additionally, if WebSocket fails once in a session or network environment, Codex should cache that failure and immediately use the fallback transport instead of retrying the same failing path several times on every attempt.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Allow ChatGPT login users to force HTTPS/SSE transport [2 comments, 2 participants]