@liuhua非tun模式下codex默认使用wss协议,只有重试5次才会转https 【已经解决】 中发帖

非正常情况下: 
[image]
[image]
codex帮我解决了,关键核心:
$env:HTTP_PROXY="http://127.0.0.1:7897"
$env:HTTPS_PROXY="http://127.0.0.1:7897"
$env:ALL_PROXY="http://127.0.0.1:7897"
$env:NO_PROXY="localhost,127.0.0.1,::1"
codex

永久解决:

setx HTTP_PROXY "http://127.0.0.1:7897"
setx HTTPS_PROXY "http://127.0.0.1:7897"
setx ALL_PROXY "http://127.0.0.1:7897"
setx NO_PROXY "localhost,127.0.0.1,::1"

于是做成脚本了
codex.zip ...