Skip to content

Unable to disable WebSocket transport #13103

@hanx-hep

Description

@hanx-hep

Description

I am encountering an issue where configuring:

supports_websockets = false

in config.toml does not take effect.

Specifically, the model_providers.openai provider appears to be immutable or internally defined in a way that prevents overriding transport capabilities. As a result, Codex CLI continues attempting to establish WebSocket connections even when explicitly disabled in configuration.


Observed Behavior

  • Codex CLI attempts WebSocket transport by default.
  • Even after setting supports_websockets = false, WebSocket connections are still attempted.
  • There appears to be no reliable way to force HTTPS-only transport via configuration.

Expected Behavior

One of the following should be possible:

  1. supports_websockets = false should correctly disable WebSocket usage for model_providers.openai, or
  2. A CLI flag should exist to explicitly force HTTPS transport as the preferred (or exclusive) transport method.

For example:

codex --transport https

or

codex --prefer-https

Environment

  • OS: Linux
  • Codex CLI version: 0.106.0
  • Network: Proxy environment (HTTP / SOCKS / Reality-based proxy)
  • Issue reproducible: Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions