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

推荐订阅源

V
V2EX
J
Java Code Geeks
月光博客
月光博客
博客园_首页
The GitHub Blog
The GitHub Blog
Vercel News
Vercel News
B
Blog RSS Feed
博客园 - 聂微东
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
Jina AI
Jina AI
S
SegmentFault 最新的问题
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
有赞技术团队
有赞技术团队
Hugging Face - Blog
Hugging Face - Blog
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
The Cloudflare Blog
量子位
Martin Fowler
Martin Fowler
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗

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: clarify browser cdp fuzz assertions · openclaw/open...
steipete · 2026-05-08 · via Recent Commits to openclaw:main

@@ -200,7 +200,7 @@ describe("fuzz: isDirectCdpWebSocketEndpoint", () => {

200200

}

201201

});

202202203-

it("never throws on random input (including invalid URLs)", () => {

203+

it("returns booleans for random input including invalid URLs", () => {

204204

const rng = makeRng(0x2004);

205205

const junkPool = [

206206

"",

@@ -215,7 +215,6 @@ describe("fuzz: isDirectCdpWebSocketEndpoint", () => {

215215

];

216216

for (let i = 0; i < ITERATIONS; i += 1) {

217217

const input = rng() < 0.5 ? pick(rng, junkPool) : String.fromCharCode(randInt(rng, 0, 0x7f));

218-

expect(() => isDirectCdpWebSocketEndpoint(input)).not.toThrow();

219218

expect(typeof isDirectCdpWebSocketEndpoint(input)).toBe("boolean");

220219

}

221220

});

@@ -271,12 +270,12 @@ describe("fuzz: normalizeCdpHttpBaseForJsonEndpoints", () => {

271270

}

272271

});

273272274-

it("falls back safely for non-URL-ish inputs (never throws)", () => {

273+

it("returns normalized strings for non-URL-ish inputs", () => {

275274

const rng = makeRng(0x3003);

276275

// These inputs either trigger the catch branch (empty / "garbage" /

277276

// bare "ws://" / "wss://") or are accepted by WHATWG URL as

278277

// special-scheme absolute URLs (e.g. "ws:host/path" becomes

279-

// "ws://host/path"). Either way the helper must never throw.

278+

// "ws://host/path"). Both paths must return strings.

280279

const junk = [

281280

"ws:/devtools/browser/abc",

282281

"wss:/devtools/browser/abc",

@@ -289,7 +288,6 @@ describe("fuzz: normalizeCdpHttpBaseForJsonEndpoints", () => {

289288

];

290289

for (let i = 0; i < ITERATIONS; i += 1) {

291290

const input = pick(rng, junk);

292-

expect(() => normalizeCdpHttpBaseForJsonEndpoints(input)).not.toThrow();

293291

const out = normalizeCdpHttpBaseForJsonEndpoints(input);

294292

expect(typeof out).toBe("string");

295293

// Scheme swap invariant: whatever branch ran, ws:/wss: never

@@ -377,11 +375,10 @@ describe("fuzz: redactCdpUrl", () => {

377375

expect(redactCdpUrl(" ")).toBe("");

378376

});

379377380-

it("falls back to redactSensitiveText for non-URL-ish inputs (never throws)", () => {

378+

it("falls back to redactSensitiveText for non-URL-ish inputs", () => {

381379

const rng = makeRng(0x5002);

382380

for (let i = 0; i < ITERATIONS; i += 1) {

383381

const junk = pick(rng, ["not-a-url", "http://", "ws://", "::::", "Bearer ey.SECRET.xyz"]);

384-

expect(() => redactCdpUrl(junk)).not.toThrow();

385382

const out = redactCdpUrl(junk);

386383

expect(typeof out).toBe("string");

387384

}

@@ -405,7 +402,7 @@ describe("fuzz: appendCdpPath", () => {

405402

});

406403407404

describe("fuzz: getHeadersWithAuth", () => {

408-

it("never throws and always returns a mergedHeaders object", () => {

405+

it("always returns a mergedHeaders object", () => {

409406

const rng = makeRng(0x7001);

410407

for (let i = 0; i < ITERATIONS; i += 1) {

411408

const withAuth = rng() < 0.3;