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

推荐订阅源

V
Visual Studio Blog
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
博客园 - 叶小钗
The Cloudflare Blog
D
DataBreaches.Net
J
Java Code Geeks
G
Google Developers Blog
L
LangChain Blog
N
Netflix TechBlog - Medium
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
小众软件
小众软件
量子位
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
博客园_首页
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog
腾讯CDC

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
test: spell out gateway warning output · openclaw/opencla...
shakkernerd · 2026-05-12 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -149,7 +149,7 @@ describe("runBootOnce", () => {

149149

agentCommand.mockRejectedValue(new Error("boom"));

150150

await expect(runBootOnce({ cfg: {}, deps: makeDeps(), workspaceDir })).resolves.toEqual({

151151

status: "failed",

152-

reason: expect.stringContaining("agent run failed: boom"),

152+

reason: "agent run failed: boom",

153153

});

154154

expect(agentCommand).toHaveBeenCalledTimes(1);

155155

});

Original file line numberDiff line numberDiff line change

@@ -1045,7 +1045,9 @@ describe("agent request events", () => {

10451045

// server-node-events must log-and-return on parse failure — no agent

10461046

// dispatch, no crash, and the refusal reason bubbles up via logGateway.

10471047

expect(agentCommandMock).not.toHaveBeenCalled();

1048-

expect(warn).toHaveBeenCalledWith(expect.stringMatching(/attachment parse failed.*non-image/i));

1048+

expect(warn).toHaveBeenCalledWith(

1049+

"agent.request attachment parse failed: attachment a.pdf: non-image attachments not supported",

1050+

);

10491051

});

10501052
10511053

beforeEach(() => {

Original file line numberDiff line numberDiff line change

@@ -124,7 +124,9 @@ describe("startGatewayMemoryBackend", () => {

124124

expect(log.info).toHaveBeenCalledWith(

125125

'qmd memory startup boot sync completed for 2 agents: "ops", "main"',

126126

);

127-

expect(log.info).not.toHaveBeenCalledWith(expect.stringContaining("deferred"));

127+

expect(log.info.mock.calls.some(([message]) => String(message).includes("deferred"))).toBe(

128+

false,

129+

);

128130

});

129131
130132

it("logs a warning when qmd manager init fails and continues with other agents", async () => {

Original file line numberDiff line numberDiff line change

@@ -189,7 +189,7 @@ describe("gateway startup primary model warmup", () => {

189189

});

190190
191191

expect(warn).toHaveBeenCalledWith(

192-

expect.stringContaining("startup model warmup failed for codex/gpt-5.4"),

192+

"startup model warmup failed for codex/gpt-5.4: Error: models write failed",

193193

);

194194

});

195195

});

Original file line numberDiff line numberDiff line change

@@ -168,10 +168,11 @@ describe("gateway plugin HTTP auth boundary", () => {

168168

"nosniff",

169169

);

170170

expect(withoutHstsResponse.setHeader).toHaveBeenCalledWith("Referrer-Policy", "no-referrer");

171-

expect(withoutHstsResponse.setHeader).not.toHaveBeenCalledWith(

172-

"Strict-Transport-Security",

173-

expect.any(String),

174-

);

171+

expect(

172+

withoutHstsResponse.setHeader.mock.calls.some(

173+

([headerName]) => headerName === "Strict-Transport-Security",

174+

),

175+

).toBe(false);

175176
176177

const withHsts = createTestGatewayServer({

177178

resolvedAuth: AUTH_NONE,

Original file line numberDiff line numberDiff line change

@@ -408,7 +408,7 @@ describe("createGatewayPluginRequestHandler", () => {

408408

const { res, setHeader, end } = makeMockHttpResponse();

409409

const handled = await handler({ url: "/boom" } as IncomingMessage, res);

410410

expect(handled).toBe(true);

411-

expect(log.warn).toHaveBeenCalledWith(expect.stringContaining("boom"));

411+

expect(log.warn).toHaveBeenCalledWith("plugin http route failed (route): Error: boom");

412412

expect(res.statusCode).toBe(500);

413413

expect(setHeader).toHaveBeenCalledWith("Content-Type", "text/plain; charset=utf-8");

414414

expect(end).toHaveBeenCalledWith("Internal Server Error");

Original file line numberDiff line numberDiff line change

@@ -16,7 +16,9 @@ describe("maybeSeedControlUiAllowedOriginsAtStartup", () => {

1616

const expectedOrigins = ["http://localhost:3000", "http://127.0.0.1:3000"];

1717

expect(result.seededAllowedOrigins).toBe(true);

1818

expect(result.config.gateway?.controlUi?.allowedOrigins).toEqual(expectedOrigins);

19-

expect(log.info).toHaveBeenCalledWith(expect.stringContaining("for bind=lan"));

19+

expect(log.info).toHaveBeenCalledWith(

20+

'gateway: seeded gateway.controlUi.allowedOrigins ["http://localhost:3000","http://127.0.0.1:3000"] for bind=lan (required since v2026.2.26; see issue #29385). Applied for this runtime without writing config; add other origins to gateway.controlUi.allowedOrigins if needed.',

21+

);

2022

expect(log.warn).not.toHaveBeenCalled();

2123

});

2224