【Bug已解决】codex: tool call timeout / Function execution exceeds limit — CodeX CLI 工具调用超时解决方案
1. 问题描述
CodeX CLI 在调用工具(Bash、文件操作、MCP 等)时超时:
# Bash 工具超时
$ codex "运行 npm test"
Error: Tool call timed out after 60000ms
Bash execution exceeded the time limit.
# 或文件读取超时
$ codex "分析大型日志文件"
Error: Tool call timed out
Reading /var/log/app.log (500MB) exceeded time limit.
# 或 MCP 工具超时
$ codex "使用 github 工具搜索仓库"
Error: MCP tool timeout
github server did not respond within 30000ms.
# 或命令执行卡住
$ codex "运行 npm install"
Error: Tool call timed out after 60000ms
# npm install 等待用户输入卡住
这个问题在以下场景中特别常见:
- 命令执行时间过长(npm test、npm install)
- 文件过大导致读取超时
- MCP 服务器响应慢
- 命令等待交互输入卡住
- 网络请求慢 <
订阅专栏 解锁全文
523



被折叠的 条评论
为什么被折叠?



