You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
1. 问题
在子代理/工作流中以
gpt-5.6-luna(Luna 5.6)运行任务时失败:curl 直连同一 endpoint + 同一 key 却返回 200。
2. 根因
LLM 调用链(全部在 DSH 主进程内):
HTTP_PROXY/HTTPS_PROXY环境变量;只有NODE_USE_ENV_PROXY=1(Node ≥ 22.15 / 24)或--use-env-proxy才启用EnvHttpProxyAgent。http_proxy/https_proxy=http://127.0.0.1:7897(Clash),但未启用 env-proxy 时全部 LLM 请求直连。
则放行(200)。curl 直连成功是因为 curl 与 undici 的 TLS 请求特征不同,
被网关区别对待——不影响结论。
deepseek-v4-flash不受地区限制,所以此前一直正常;luna 一用即暴露。3. 实测矩阵(同 key、同 endpoint、同模型 gpt-5.6-luna)
-x http://127.0.0.1:7897ProxyAgent('http://127.0.0.1:7897')--use-env-proxyNODE_USE_ENV_PROXY=1环境变量4. 解决方案
NODE_USE_ENV_PROXY=1:NODE_USE_ENV_PROXY=1 $DSH_SOURCE/apps/cli/lib/bin.js webNODE_USE_ENV_PROXY=1:NODE_USE_ENV_PROXY在 Node 首次 fetch 时惰性读取,进程内设置与 launch 设置同样生效(均 200),故此处注入时机安全;
All reactions