Codex Desktop 频繁出现 Reconnecting...,根因大多是 OpenAI/ChatGPT 的 WebSocket 连接没有稳定命中代理。
解决思路:
- 确认 Clash Verge 本地端口,比如
127.0.0.1:7897 - 设置 Windows 用户级代理环境变量
- 在
~\.codex\config.toml加[shell_environment_policy]
[shell_environment_policy]
set = { HTTP_PROXY = "http://127.0.0.1:7897", HTTPS_PROXY = "http://127.0.0.1:7897", ALL_PROXY = "http://127.0.0.1:7897", NO_PROXY = "localhost,127.0.0.1,::1" }
- Clash Verge 里把
Codex.exe、chatgpt.com、openai.com、oaistatic.com、oaiusercontent.com强制走同一代理组 - 重启 Clash Verge 和 Codex
重点:AI 服务最好固定稳定节点
3 个帖子 - 2 位参与者