Tech
[Codex] 解决 Codex 沙箱报错问题(apply_patch 调用失败)
Codex 调用 apply_patch 一直报错,尝试过让它自己修,但是一直没解决。
今天发现了这个报错的根本原因:
Codex 本身需要使用代理,但沙箱辅助程序也继承了代理环境变量。
之前为了解决 Codex 每次回复前都要 reconnecting 5 次的问题,设置了 Codex 走本地代理
HTTP_PROXY="http://127.0.0.1:10808"
HTTPS_PROXY="http://127.0.0.1:10808"
ALL_PROXY="socks5h://127.0.0.1:10808"
NO_PROXY="localhost,127.0.0.1,::1"
这导致 Codex 在 ~\.codex\sandbox\setup_marker.json 这个文件中反复写入:
"proxy_ports": [ 10808 ],
随后,当执行 apply_patch 时,会触发 codex-windows-sandbox-setup.exe 。这个程序会尝试刷新 Windows 沙箱/防火墙状态,于是产生 COM+...
Read the full discussion on V2EX
This article was aggregated from V2EX. Click to join the conversation.
View on V2EX