惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
月光博客
月光博客
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
博客园 - 【当耐特】
博客园_首页
The Cloudflare Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Apple Machine Learning Research
Apple Machine Learning Research
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网
量子位
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
IT之家
IT之家
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
V
Visual Studio Blog
F
Fortinet All Blogs
Martin Fowler
Martin Fowler

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(gateway): honor all_proxy in env dispatcher · opencla...
steipete · 2026-04-27 · via Recent Commits to openclaw:main

@@ -29,9 +29,9 @@ const { ProxyAgent, EnvHttpProxyAgent, undiciFetch, proxyAgentSpy, envAgentSpy,

2929

}

3030

class EnvHttpProxyAgent {

3131

static lastCreated: EnvHttpProxyAgent | undefined;

32-

constructor() {

32+

constructor(public readonly options?: Record<string, unknown>) {

3333

EnvHttpProxyAgent.lastCreated = this;

34-

envAgentSpy();

34+

envAgentSpy(options);

3535

}

3636

}

3737

@@ -159,7 +159,7 @@ describe("resolveProxyFetchFromEnv", () => {

159159

HTTPS_PROXY: "http://proxy.test:8080",

160160

});

161161

expect(fetchFn).toBeDefined();

162-

expect(envAgentSpy).toHaveBeenCalled();

162+

expect(envAgentSpy).toHaveBeenCalledWith({ httpsProxy: "http://proxy.test:8080" });

163163164164

await fetchFn!("https://api.example.com");

165165

expect(undiciFetch).toHaveBeenCalledWith(

@@ -174,7 +174,10 @@ describe("resolveProxyFetchFromEnv", () => {

174174

HTTP_PROXY: "http://fallback.test:3128",

175175

});

176176

expect(fetchFn).toBeDefined();

177-

expect(envAgentSpy).toHaveBeenCalled();

177+

expect(envAgentSpy).toHaveBeenCalledWith({

178+

httpProxy: "http://fallback.test:3128",

179+

httpsProxy: "http://fallback.test:3128",

180+

});

178181

});

179182180183

it("returns proxy fetch when lowercase https_proxy is set", () => {

@@ -185,7 +188,7 @@ describe("resolveProxyFetchFromEnv", () => {

185188

https_proxy: "http://lower.test:1080",

186189

});

187190

expect(fetchFn).toBeDefined();

188-

expect(envAgentSpy).toHaveBeenCalled();

191+

expect(envAgentSpy).toHaveBeenCalledWith({ httpsProxy: "http://lower.test:1080" });

189192

});

190193191194

it("returns proxy fetch when lowercase http_proxy is set", () => {

@@ -196,7 +199,25 @@ describe("resolveProxyFetchFromEnv", () => {

196199

http_proxy: "http://lower-http.test:1080",

197200

});

198201

expect(fetchFn).toBeDefined();

199-

expect(envAgentSpy).toHaveBeenCalled();

202+

expect(envAgentSpy).toHaveBeenCalledWith({

203+

httpProxy: "http://lower-http.test:1080",

204+

httpsProxy: "http://lower-http.test:1080",

205+

});

206+

});

207+208+

it("returns proxy fetch when ALL_PROXY is set", () => {

209+

const fetchFn = resolveProxyFetchFromEnv({

210+

HTTPS_PROXY: "",

211+

HTTP_PROXY: "",

212+

https_proxy: "",

213+

http_proxy: "",

214+

ALL_PROXY: "socks5://all-proxy.test:1080",

215+

});

216+

expect(fetchFn).toBeDefined();

217+

expect(envAgentSpy).toHaveBeenCalledWith({

218+

httpProxy: "socks5://all-proxy.test:1080",

219+

httpsProxy: "socks5://all-proxy.test:1080",

220+

});

200221

});

201222202223

it("returns undefined when EnvHttpProxyAgent constructor throws", () => {