"Failed to get `agent_messages` from the codex session. \n\n You can try to set `return_all_messages` to `True` to get the full reasoning information.
"Failed to get agent_messages from the codex session.
\n\n You can try to set return_all_messages to True to get the
full reasoning information. 报错
这个是codex运行时出错,可以检查codex是否可以正常运行,如果是偶发报错请检查网络环境和选择的中转商
你可以直接用codex 命令行更高效了,我自己重新写了,后续会开源
发自我的iPhone
------------------ Original ------------------
From: Ean Yan @.>
Date: Mon,Dec 8,2025 1:06 AM
To: GuDaStudio/codexmcp @.>
Cc: duoduoan8 @.>, Author @.>
Subject: Re: [GuDaStudio/codexmcp] "Failed to get agent_messages from thecodex session. \n\n You can try to set return_all_messages to True toget the full reasoning information. (Issue #19)
Ean-Yan left a comment (GuDaStudio/codexmcp#19)
遇到了同样的问题(我的codex在终端可以正常运行)
{ "result": { "success": false, "error": "Failed to get agent_messages from the codex session. \n\n You can try to set return_all_messages to True to get the full reasoning information. \n\n[codex error] stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/cod ex/responses)\n\n[codex error] stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)" } }
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>
你可以直接用codex 命令行更高效了,我自己重新写了,后续会开源
发自我的iPhone …
我发现是.zshrc里环境变量配置的问题,HTTPS请求没有走代理(MCP会调用https://chatgpt.com/XXX接口),加上配置就好了
你可以直接用codex 命令行更高效了,我自己重新写了,后续会开源 发自我的iPhone …
我发现是.zshrc里环境变量配置的问题,HTTPS请求没有走代理(MCP会调用https://chatgpt.com/XXX接口),加上配置就好了%EF%BC%8C%E5%8A%A0%E4%B8%8A%E9%85%8D%E7%BD%AE%E5%B0%B1%E5%A5%BD%E4%BA%86)
请问在哪里加代理呀 ?
你可以直接用codex 命令行更高效了,我自己重新写了,后续会开源 发自我的iPhone …
我发现是.zshrc里环境变量配置的问题,HTTPS请求没有走代理(MCP会调用https://chatgpt.com/XXX接口),加上配置就好了%EF%BC%8C%E5%8A%A0%E4%B8%8A%E9%85%8D%E7%BD%AE%E5%B0%B1%E5%A5%BD%E4%BA%86)
请问在哪里加代理呀 ?
我是在~/.zshrc里配的运行变量(MacOS),代理IP和端口指向你自己的科学上网IP和端口(HTTP、HTTPS、socks5),我贴个示例
alias claude='HTTP_PROXY=http://127.0.0.1:1087 HTTPS_PROXY=http://127.0.0.1:1087 ALL_PROXY=socks5://127.0.0.1:1080 \
http_proxy=http://127.0.0.1:1087 https_proxy=http://127.0.0.1:1087 all_proxy=socks5://127.0.0.1:1080 claude'
alias codex='HTTP_PROXY=http://127.0.0.1:1087 HTTPS_PROXY=http://127.0.0.1:1087 ALL_PROXY=socks5://127.0.0.1:1080 \
http_proxy=http://127.0.0.1:1087 https_proxy=http://127.0.0.1:1087 all_proxy=socks5://127.0.0.1:1080 codex'