Skip to content

Allow HTTP/WebSocket transport overrides for existing ChatGPT threads without changing provider identity #58475

Open

Description

@mckay-yang

What variant of Codex are you using?

Codex in the ChatGPT macOS app.

  • App: 26.1027.30824 (build 22943)
  • Bundled Codex backend: 0.166.0-alpha.5.1
  • Platform: macOS 27.2, Apple Silicon
  • Authentication: ChatGPT sign-in
  • Network: system HTTP proxy (Surge), with respect_system_proxy = true

What feature would you like to see?

Please provide an explicit HTTP/SSE-only transport override for existing, resumed ChatGPT threads, independently of the thread's persisted provider identity. It should preserve the same thread ID, history, and authentication, without editing rollout/SQLite records or forking the conversation.

In my observed app workflow, changing the default provider to an HTTP-only alias changes the provider recorded for new threads, while an existing thread continues attempting WebSocket through its saved openai provider. A network transport preference consequently behaves like a conversation identity setting.

This request is limited to switching transport for the same ChatGPT service and authentication. It is not a request to silently migrate history between unrelated providers.

Steps that led to this report

  1. Create and use a thread with ChatGPT sign-in and the built-in openai provider.

  2. After repeated Responses WebSocket failures, configure this HTTP-only alias in user-level ~/.codex/config.toml:

    model_provider = "chatgpt-http"
    
    [model_providers.chatgpt-http]
    name = "ChatGPT HTTP"
    base_url = "https://chatgpt.com/backend-api/codex"
    wire_api = "responses"
    requires_openai_auth = true
    supports_websockets = false
  3. Continue the existing thread from the app. Compare it with a newly created thread after the configuration change.

  4. New-thread metadata records model_provider=chatgpt-http; the old thread still records model_provider=openai and continues attempting Responses WebSocket. The app does not provide an obvious way to apply just the HTTP-only preference to that existing conversation.

Observed evidence

Below is a sanitized projection of local logs from 2026-10-31, with times in UTC. All rows refer to the same existing thread, anonymized as A:

02:16:56  thread=A  span=model_client.stream_responses_websocket
                      transport=responses_websocket
02:18:00  thread=A  stream disconnected before completion:
                      IO error: Broken pipe (os error 32)
02:19:03  thread=A  same Broken pipe error
02:20:23  thread=A  same Broken pipe error
02:22:21  thread=A  codex_core::client: falling back to HTTP
02:22:21  thread=A  span=model_client.stream_responses_api
                      transport=responses_http
02:25:32  thread=A  transport=responses_http

The existing thread was created on 2026-10-30 with model_provider=openai. A new ordinary thread created at 2026-10-31T02:21:48Z records model_provider=chatgpt-http.

HTTP fallback does work. The problem is being unable to clearly select HTTP up front for an existing conversation, leaving the user waiting through repeated WebSocket failures. The metadata and logs establish the observed difference; they do not establish that resume never reloads configuration or that the provider can never be overridden.

Requested behavior

  • Offer a supported HTTP/SSE versus WebSocket preference that can be applied to an existing ChatGPT thread without changing provider identity.
  • On resume, show the effective provider and transport preference, including whether it comes from saved thread state or current configuration.
  • If retaining a saved preference is intentional, make that visible and offer an explicit action to apply the current transport preference.

Related issues

No raw conversation history, credentials, private proxy configuration, or full diagnostic logs are attached.

Activity

  1. added
    enhancement
    app
    connectivity
    session
    config
    on Oct 31, 2026
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

    appconfigconnectivityenhancementsession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions