Codex 常见报错与解决办法
·
问题一:MCP client 超时
运行 Codex 时可能会碰到这个报错:
MCP client for `codex_apps` timed out after 30 seconds. Add or adjust `startup_timeout_sec` in your
config.toml:
[mcp_servers.codex_apps]
startup_timeout_sec = XX
⚠ MCP startup incomplete (failed: codex_apps)
Reconnecting...
原因: codex_apps 这个 MCP 服务启动太慢,超过了默认的 30 秒超时。
解决: 打开 config.toml,加上或修改超时配置:
[mcp_servers.codex_apps]
startup_timeout_sec = 60
把超时时间拉长就行,60 秒一般够用,不够就继续加。
问题二:对话中断
Conversation interrupted - tell the model what to do differently. Something went wrong? Hit `/feedback` to report the issue
这个通常出现在网络不稳定或者模型响应超时的时候。检查一下网络连接,重新连接一般就能恢复。
问题三:长时间 thinking 或连接超时
如果 Codex 一直显示 thinking 不动,或者直接连不上,大概率是网络问题。在终端临时设置代理:
export HTTPS_PROXY=http://127.0.0.1:7890
export HTTP_PROXY=http://127.0.0.1:7890
注意这只对当前终端窗口有效,关掉就失效了。如果需要永久生效,写进 ~/.bashrc 或 ~/.zshrc。
代理端口 7890 根据你自己的实际情况改,不一定都是这个。
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐


所有评论(0)