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

推荐订阅源

www.infosecurity-magazine.com
www.infosecurity-magazine.com
Security Archives - TechRepublic
Security Archives - TechRepublic
TaoSecurity Blog
TaoSecurity Blog
Cloudbric
Cloudbric
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
N
News and Events Feed by Topic
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Securelist
The Cloudflare Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
D
DataBreaches.Net
S
Schneier on Security
L
LangChain Blog
Jina AI
Jina AI
M
MIT News - Artificial intelligence
Recent Announcements
Recent Announcements
T
Tenable Blog
B
Blog RSS Feed
V
Visual Studio Blog
Simon Willison's Weblog
Simon Willison's Weblog
G
Google Developers Blog
T
The Exploit Database - CXSecurity.com
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
WordPress大学
WordPress大学
W
WeLiveSecurity
I
InfoQ
The Hacker News
The Hacker News
雷峰网
雷峰网
月光博客
月光博客
P
Privacy & Cybersecurity Law Blog
O
OpenAI News
Hacker News: Ask HN
Hacker News: Ask HN
T
Threat Research - Cisco Blogs
GbyAI
GbyAI
The Last Watchdog
The Last Watchdog
P
Privacy International News Feed
Cyberwarzone
Cyberwarzone
S
SegmentFault 最新的问题
L
Lohrmann on Cybersecurity
人人都是产品经理
人人都是产品经理
V
V2EX
V
Vulnerabilities – Threatpost
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
C
Cybersecurity and Infrastructure Security Agency CISA
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Troy Hunt's Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
阮一峰的网络日志
阮一峰的网络日志
SecWiki News
SecWiki News
Microsoft Azure Blog
Microsoft Azure Blog

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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
test: clear gateway client broad matchers · openclaw/openclaw@4e5980e
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -144,6 +144,39 @@ function getLatestWs(): MockWebSocket {

144144

return ws;

145145

}

146146147+

function requireRecord(value: unknown, label: string): Record<string, unknown> {

148+

if (typeof value !== "object" || value === null || Array.isArray(value)) {

149+

throw new Error(`expected ${label} to be an object`);

150+

}

151+

return value as Record<string, unknown>;

152+

}

153+154+

function expectRecordFields(

155+

value: unknown,

156+

expected: Record<string, unknown>,

157+

label: string,

158+

): Record<string, unknown> {

159+

const record = requireRecord(value, label);

160+

for (const [key, expectedValue] of Object.entries(expected)) {

161+

expect(record[key], `${label}.${key}`).toEqual(expectedValue);

162+

}

163+

return record;

164+

}

165+166+

async function expectGatewayRequestError(

167+

promise: Promise<unknown>,

168+

expected: Record<string, unknown>,

169+

): Promise<void> {

170+

let rejected: unknown;

171+

try {

172+

await promise;

173+

} catch (error) {

174+

rejected = error;

175+

}

176+

const error = expectRecordFields(rejected, expected, "gateway request error");

177+

expectRecordFields(error.details, { method: "chat.history" }, "gateway request error details");

178+

}

179+147180

function createClientWithIdentity(

148181

deviceId: string,

149182

onClose: (code: number, reason: string) => void,

@@ -164,12 +197,8 @@ function expectSecurityConnectError(

164197

onConnectError: ReturnType<typeof vi.fn>,

165198

params?: { expectTailscaleHint?: boolean },

166199

) {

167-

expect(onConnectError).toHaveBeenCalledWith(

168-

expect.objectContaining({

169-

message: expect.stringContaining("SECURITY ERROR"),

170-

}),

171-

);

172200

const error = onConnectError.mock.calls[0]?.[0] as Error;

201+

expect(error.message).toContain("SECURITY ERROR");

173202

expect(error.message).toContain("openclaw doctor --fix");

174203

if (params?.expectTailscaleHint) {

175204

expect(error.message).toContain("Tailscale Serve/Funnel");

@@ -271,12 +300,14 @@ describe("GatewayClient security checks", () => {

271300272301

expect(onConnectError).not.toHaveBeenCalled();

273302

expect(wsInstances.length).toBe(1);

274-

expect(getLatestWs().options).not.toMatchObject({ agent: expect.any(Object) });

275-

expect((global as Record<string, unknown>)["GLOBAL_AGENT"]).toEqual(

276-

expect.objectContaining({

303+

expect(requireRecord(getLatestWs().options, "websocket options").agent).toBeUndefined();

304+

expectRecordFields(

305+

(global as Record<string, unknown>)["GLOBAL_AGENT"],

306+

{

277307

HTTP_PROXY: "http://127.0.0.1:3128",

278308

HTTPS_PROXY: "http://127.0.0.1:3128",

279-

}),

309+

},

310+

"global agent",

280311

);

281312

client.stop();

282313

});

@@ -299,7 +330,7 @@ describe("GatewayClient security checks", () => {

299330300331

expect(onConnectError).not.toHaveBeenCalled();

301332

expect(wsInstances.length).toBe(1);

302-

expect(getLatestWs().options).not.toMatchObject({ agent: expect.any(Object) });

333+

expect(requireRecord(getLatestWs().options, "websocket options").agent).toBeUndefined();

303334

} finally {

304335

client.stop();

305336

await stopProxy(handle);

@@ -420,12 +451,11 @@ describe("GatewayClient request errors", () => {

420451

}),

421452

);

422453423-

await expect(requestPromise).rejects.toMatchObject({

454+

await expectGatewayRequestError(requestPromise, {

424455

name: "GatewayClientRequestError",

425456

gatewayCode: "UNAVAILABLE",

426457

retryable: true,

427458

retryAfterMs: 250,

428-

details: { method: "chat.history" },

429459

});

430460431461

client.stop();

@@ -711,6 +741,10 @@ describe("GatewayClient connect auth payload", () => {

711741

return parseConnectRequest(ws).params?.auth ?? {};

712742

}

713743744+

function expectConnectAuthFields(ws: MockWebSocket, expected: Record<string, unknown>): void {

745+

expectRecordFields(connectFrameFrom(ws), expected, "connect auth");

746+

}

747+714748

function connectScopesFrom(ws: MockWebSocket) {

715749

return parseConnectRequest(ws).params?.scopes ?? [];

716750

}

@@ -823,9 +857,7 @@ describe("GatewayClient connect auth payload", () => {

823857

ws.emitOpen();

824858

emitConnectChallenge(ws);

825859826-

expect(connectFrameFrom(ws)).toMatchObject({

827-

token: "shared-token",

828-

});

860+

expectConnectAuthFields(ws, { token: "shared-token" });

829861

expect(connectFrameFrom(ws).deviceToken).toBeUndefined();

830862

client.stop();

831863

});

@@ -838,9 +870,7 @@ describe("GatewayClient connect auth payload", () => {

838870839871

const { ws, connect } = startClientWithEarlyChallenge({ client });

840872841-

expect(connectFrameFrom(ws)).toMatchObject({

842-

token: "shared-token",

843-

});

873+

expectConnectAuthFields(ws, { token: "shared-token" });

844874

emitHelloOk(ws, connect.id);

845875

client.stop();

846876

});

@@ -857,11 +887,10 @@ describe("GatewayClient connect auth payload", () => {

857887

ws.autoCloseOnClose = false;

858888

client.stop();

859889860-

await vi.waitFor(() =>

861-

expect(onConnectError).toHaveBeenCalledWith(

862-

expect.objectContaining({ message: "gateway client stopped" }),

863-

),

864-

);

890+

await vi.waitFor(() => {

891+

const error = onConnectError.mock.calls[0]?.[0] as Error | undefined;

892+

expect(error?.message).toBe("gateway client stopped");

893+

});

865894

expect(logDebugMock).toHaveBeenCalledWith(

866895

"gateway connect failed: Error: gateway client stopped",

867896

);

@@ -883,9 +912,7 @@ describe("GatewayClient connect auth payload", () => {

883912

ws.emitOpen();

884913

emitConnectChallenge(ws);

885914886-

expect(connectFrameFrom(ws)).toMatchObject({

887-

password: "shared-password", // pragma: allowlist secret

888-

});

915+

expectConnectAuthFields(ws, { password: "shared-password" }); // pragma: allowlist secret

889916

expect(connectFrameFrom(ws).token).toBeUndefined();

890917

expect(connectFrameFrom(ws).deviceToken).toBeUndefined();

891918

client.stop();

@@ -903,9 +930,7 @@ describe("GatewayClient connect auth payload", () => {

903930

ws.emitOpen();

904931

emitConnectChallenge(ws);

905932906-

expect(connectFrameFrom(ws)).toMatchObject({

907-

password: "shared-password", // pragma: allowlist secret

908-

});

933+

expectConnectAuthFields(ws, { password: "shared-password" }); // pragma: allowlist secret

909934

expect(connectFrameFrom(ws).bootstrapToken).toBeUndefined();

910935

expect(connectFrameFrom(ws).token).toBeUndefined();

911936

client.stop();

@@ -925,7 +950,7 @@ describe("GatewayClient connect auth payload", () => {

925950

ws.emitOpen();

926951

emitConnectChallenge(ws);

927952928-

expect(connectFrameFrom(ws)).toMatchObject({

953+

expectConnectAuthFields(ws, {

929954

token: "stored-device-token",

930955

deviceToken: "stored-device-token",

931956

});

@@ -948,7 +973,7 @@ describe("GatewayClient connect auth payload", () => {

948973

ws.emitOpen();

949974

emitConnectChallenge(ws);

950975951-

expect(connectFrameFrom(ws)).toMatchObject({

976+

expectConnectAuthFields(ws, {

952977

token: "stored-device-token",

953978

deviceToken: "stored-device-token",

954979

});

@@ -975,14 +1000,16 @@ describe("GatewayClient connect auth payload", () => {

9751000

ws.emitOpen();

9761001

emitConnectChallenge(ws);

9771002978-

expect(loadDeviceAuthTokenMock).toHaveBeenCalledWith(

979-

expect.objectContaining({

980-

deviceId: expect.any(String),

1003+

const loadTokenParams = expectRecordFields(

1004+

loadDeviceAuthTokenMock.mock.calls[0]?.[0],

1005+

{

9811006

role: "operator",

9821007

env,

983-

}),

1008+

},

1009+

"load device token params",

9841010

);

985-

expect(connectFrameFrom(ws)).toMatchObject({

1011+

expect(loadTokenParams.deviceId).toBeTypeOf("string");

1012+

expectConnectAuthFields(ws, {

9861013

token: "stored-device-token",

9871014

deviceToken: "stored-device-token",

9881015

});

@@ -1001,9 +1028,7 @@ describe("GatewayClient connect auth payload", () => {

10011028

ws.emitOpen();

10021029

emitConnectChallenge(ws);

100310301004-

expect(connectFrameFrom(ws)).toMatchObject({

1005-

bootstrapToken: "bootstrap-token",

1006-

});

1031+

expectConnectAuthFields(ws, { bootstrapToken: "bootstrap-token" });

10071032

expect(connectFrameFrom(ws).token).toBeUndefined();

10081033

expect(connectFrameFrom(ws).deviceToken).toBeUndefined();

10091034

client.stop();

@@ -1025,7 +1050,7 @@ describe("GatewayClient connect auth payload", () => {

10251050

ws.emitOpen();

10261051

emitConnectChallenge(ws);

102710521028-

expect(connectFrameFrom(ws)).toMatchObject({

1053+

expectConnectAuthFields(ws, {

10291054

token: "explicit-device-token",

10301055

deviceToken: "explicit-device-token",

10311056

});

@@ -1048,7 +1073,7 @@ describe("GatewayClient connect auth payload", () => {

10481073

ws.emitOpen();

10491074

emitConnectChallenge(ws);

105010751051-

expect(connectFrameFrom(ws)).toMatchObject({

1076+

expectConnectAuthFields(ws, {

10521077

token: "stored-device-token",

10531078

deviceToken: "stored-device-token",

10541079

});

@@ -1075,10 +1100,14 @@ describe("GatewayClient connect auth payload", () => {

10751100

connectId: firstConnect.id,

10761101

failureDetails: { code: "AUTH_TOKEN_MISMATCH", canRetryWithDeviceToken: true },

10771102

});

1078-

expect(retriedAuth).toMatchObject({

1079-

token: "shared-token",

1080-

deviceToken: "stored-device-token",

1081-

});

1103+

expectRecordFields(

1104+

retriedAuth,

1105+

{

1106+

token: "shared-token",

1107+

deviceToken: "stored-device-token",

1108+

},

1109+

"retried connect auth",

1110+

);

10821111

const ws = getLatestWs();

10831112

expect(connectScopesFrom(ws)).toEqual(["operator.read"]);

10841113

client.stop();

@@ -1097,10 +1126,14 @@ describe("GatewayClient connect auth payload", () => {

10971126

connectId: firstConnect.id,

10981127

failureDetails: { code: "AUTH_UNAUTHORIZED", recommendedNextStep: "retry_with_device_token" },

10991128

});

1100-

expect(retriedAuth).toMatchObject({

1101-

token: "shared-token",

1102-

deviceToken: "stored-device-token",

1103-

});

1129+

expectRecordFields(

1130+

retriedAuth,

1131+

{

1132+

token: "shared-token",

1133+

deviceToken: "stored-device-token",

1134+

},

1135+

"retried connect auth",

1136+

);

11041137

client.stop();

11051138

});

11061139

@@ -1145,10 +1178,12 @@ describe("GatewayClient connect auth payload", () => {

11451178

connectId: firstConnect.id,

11461179

failureDetails: { code: "AUTH_DEVICE_TOKEN_MISMATCH" },

11471180

});

1148-

expect(clearDeviceAuthTokenMock).toHaveBeenCalledWith({

1149-

deviceId: expect.any(String),

1150-

role: "operator",

1151-

});

1181+

const clearTokenParams = expectRecordFields(

1182+

clearDeviceAuthTokenMock.mock.calls[0]?.[0],

1183+

{ role: "operator" },

1184+

"clear device token params",

1185+

);

1186+

expect(clearTokenParams.deviceId).toBeTypeOf("string");

11521187

expect(onReconnectPaused).toHaveBeenCalledWith({

11531188

code: 1008,

11541189

reason: "connect failed",