You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
appIssues related to the Codex desktop appbugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)
instead of connecting directly to the OpenAI servers.
This caused the following errors:
Reconnecting... waiting for network
Connection failed: error sending request
Solution
I found the solution after creating a ticket about this issue on the Codex GitHub repository.
The problem was not caused by Codex itself or by the network connection. It was caused by the local Caveman configuration redirecting Codex traffic to 127.0.0.1:8787.
After removing or disabling the Caveman model provider from ~/.codex/config.toml and restoring the normal OpenAI configuration, Codex started working correctly again.
So in my case, the fix was to remove the Caveman redirect from the Codex configuration or make sure the Caveman daemon is running before starting Codex.
appIssues related to the Codex desktop appbugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)
Activity
kamilkowdev commentedon Sep 5, 2026
^ Same thing for codex in VS Code terminal
kamilkowdev commentedon Sep 5, 2026
Cause of the problem
The Codex logs (
~/.codex/logs_2.sqlite) show the exact cause of the error:Traffic was redirected through Caveman:
The Caveman tool, installed at:
changed the Codex configuration in
~/.codex/config.tomland set Caveman as the model provider:The Caveman daemon was not running on port
8787.Because of this, every time Codex tried to send a message, it connected to:
instead of connecting directly to the OpenAI servers.
This caused the following errors:
Solution
I found the solution after creating a ticket about this issue on the Codex GitHub repository.
The problem was not caused by Codex itself or by the network connection. It was caused by the local Caveman configuration redirecting Codex traffic to
127.0.0.1:8787.After removing or disabling the Caveman model provider from
~/.codex/config.tomland restoring the normal OpenAI configuration, Codex started working correctly again.So in my case, the fix was to remove the Caveman redirect from the Codex configuration or make sure the Caveman daemon is running before starting Codex.