Repository navigation
Description
What variant of Codex are you using?
Codex in the ChatGPT macOS app.
- App:
26.1027.30824(build22943) - 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
-
Create and use a thread with ChatGPT sign-in and the built-in
openaiprovider. -
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
-
Continue the existing thread from the app. Compare it with a newly created thread after the configuration change.
-
New-thread metadata records
model_provider=chatgpt-http; the old thread still recordsmodel_provider=openaiand 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
- Feature Request: Add HTTPS-only Transport Option #27381 requests a general HTTPS-only option. This report focuses on applying it to already-existing conversations and explaining the effective preference on resume.
- TUI shows "Timeout waiting for child process to exit" when WebSocket transport fails; 75s startup delay before HTTP fallback #22634 covers slow WebSocket-to-HTTP fallback. The logs above show why relying on fallback does not replace an explicit preference for existing threads.
- Codex Desktop needs a supported recovery path when a thread's persisted model provider is unavailable #40314 and Feature request: provider-neutral sessions with hot provider switching and cold resume without forking #46348 discuss provider persistence and continuation/migration. This request is narrower: the same ChatGPT backend/authentication, with only the transport changing.
No raw conversation history, credentials, private proxy configuration, or full diagnostic logs are attached.
Activity