Fixing Codex Reconnecting Errors by Disabling WebSocket
Learn how to resolve the 'Reconnecting... 1/5' error in Codex by switching from WebSocket to HTTP in the configuration file.
Users experiencing persistent "Reconnecting... 1/5" errors in Codex can resolve the issue by disabling the WebSocket for Responses, according to the channel author. This change forces the application to communicate via HTTP, which eliminates the reconnection loop while maintaining access to the Responses API and the gpt-5.5 model.
To implement this fix, the following configuration must be added to the ~/.codex/config.toml file:
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 = falseThis configuration applies globally, removing the need to use the -c parameter during launch. While this solves connectivity issues, the author notes that switching to a standard HTTP/streaming path may result in slightly slower delivery of the first token or process event updates compared to the real-time experience of a stable WebSocket connection. This adjustment is recommended for those with unstable networks, whereas users with stable connections should keep the default settings.
Related reading
- OpenAI Launches GPT-6.1 Sol Ultrafast: 8x Speed Boost
- OpenAI Tests New Model by Rebuilding Codex Desktop in Rust & GPUI
- OpenAI Doubles Usage Limits for ChatGPT Pro Plans – What’s New
Sources
chatgpt.com — content not available without authorization
Related news
AI ModelsOpenAI launches Ultrafast mode for GPT-6.1 Sol and AstraOpenAI introduces Ultrafast mode for GPT-6.1 Sol and GPT-6 Astra, offering speeds up to 8 times faster than standard Sol for API, Codex, and ChatGPT Work users.·by shared tag
- OpenAIOpenAI Tests New Models by Rewriting Codex in Rust and GPUIAndrew Ambrosino reveals OpenAI's benchmark: each new model must rebuild the desktop Codex as a cross-platform native app.·by shared tag
AI ToolsOpenAI announces performance update for CodexA forthcoming Codex update aims to accelerate the loading of long dialogues while reducing memory consumption and request volume.·by shared tag
- Open SourceCodex-Orchestration plugin enables multi-model workflows in CodexThe open-source Codex-Orchestration plugin allows users to assign specific roles like Planner, Advisor, and Executor to different AI models within a single Codex task.·by shared tag
Comments
Weekly digest
The best of vibe coding, AI agents and open source — once a week, no spam.