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

推荐订阅源

P
Privacy & Cybersecurity Law Blog
Engineering at Meta
Engineering at Meta
Forbes - Security
Forbes - Security
MongoDB | Blog
MongoDB | Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
A
About on SuperTechFans
量子位
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
雷峰网
雷峰网
腾讯CDC
P
Proofpoint News Feed
S
Schneier on Security
S
Secure Thoughts
V
Visual Studio Blog
Help Net Security
Help Net Security
The Hacker News
The Hacker News
C
Cyber Attacks, Cyber Crime and Cyber Security
P
Privacy International News Feed
SecWiki News
SecWiki News
S
SegmentFault 最新的问题
T
Threatpost
小众软件
小众软件
MyScale Blog
MyScale Blog
F
Fortinet All Blogs
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
T
Tailwind CSS Blog
I
Intezer
C
CERT Recently Published Vulnerability Notes
U
Unit 42
V
V2EX
Cyberwarzone
Cyberwarzone
Recorded Future
Recorded Future
O
OpenAI News
Project Zero
Project Zero
有赞技术团队
有赞技术团队
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
Hugging Face - Blog
Hugging Face - Blog
Know Your Adversary
Know Your Adversary
C
Cybersecurity and Infrastructure Security Agency CISA
Scott Helme
Scott Helme
V2EX - 技术
V2EX - 技术
博客园 - 叶小钗
S
Securelist
A
Arctic Wolf
The Cloudflare Blog
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
博客园 - 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: 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(extensions): use real provider response mocks · openclaw/openclaw@fa04273
vincentkoc · 2026-06-23 · via Recent Commits to openclaw:main

@@ -48,6 +48,14 @@ function makeAgentModelEntry(overrides: Record<string, unknown> = {}) {

4848

};

4949

}

505051+

function jsonResponse(payload: unknown, init: ResponseInit = {}): Response {

52+

return new Response(JSON.stringify(payload), {

53+

status: 200,

54+

headers: { "Content-Type": "application/json" },

55+

...init,

56+

});

57+

}

58+5159

function expectedStaticChatCatalog() {

5260

return DEEPINFRA_MODEL_CATALOG.map((model) => {

5361

const compat = Object.assign({}, model.compat, {

@@ -195,10 +203,7 @@ describe("discoverDeepInfraModels (chat-only shim)", () => {

195203

});

196204197205

it("fetches the openclaw-projection endpoint and parses chat-surface entries when an API key is configured", async () => {

198-

const mockFetch = vi.fn().mockResolvedValue({

199-

ok: true,

200-

json: () => Promise.resolve({ data: [makeAgentModelEntry()] }),

201-

});

206+

const mockFetch = vi.fn().mockResolvedValue(jsonResponse({ data: [makeAgentModelEntry()] }));

202207203208

await withFetchPathTest(mockFetch, { DEEPINFRA_API_KEY: "sk-test" }, async () => {

204209

const models = await discoverDeepInfraModels();

@@ -228,21 +233,19 @@ describe("discoverDeepInfraModels (chat-only shim)", () => {

228233

});

229234230235

it("skips entries with no metadata or no surface tag, and deduplicates ids", async () => {

231-

const mockFetch = vi.fn().mockResolvedValue({

232-

ok: true,

233-

json: () =>

234-

Promise.resolve({

235-

data: [

236-

{ id: "BAAI/bge-m3", object: "model", metadata: null },

237-

makeAgentModelEntry({

238-

id: "untagged/model",

239-

metadata: { context_length: 1, max_tokens: 1, pricing: {}, tags: [] },

240-

}),

241-

makeAgentModelEntry(),

242-

makeAgentModelEntry(),

243-

],

244-

}),

245-

});

236+

const mockFetch = vi.fn().mockResolvedValue(

237+

jsonResponse({

238+

data: [

239+

{ id: "BAAI/bge-m3", object: "model", metadata: null },

240+

makeAgentModelEntry({

241+

id: "untagged/model",

242+

metadata: { context_length: 1, max_tokens: 1, pricing: {}, tags: [] },

243+

}),

244+

makeAgentModelEntry(),

245+

makeAgentModelEntry(),

246+

],

247+

}),

248+

);

246249247250

await withFetchPathTest(mockFetch, { DEEPINFRA_API_KEY: "sk-test" }, async () => {

248251

const models = await discoverDeepInfraModels();

@@ -283,7 +286,7 @@ describe("discoverDeepInfraModels (chat-only shim)", () => {

283286

});

284287285288

it("falls back to the static catalog on non-2xx HTTP responses", async () => {

286-

const mockFetch = vi.fn().mockResolvedValue({ ok: false, status: 503 });

289+

const mockFetch = vi.fn().mockResolvedValue(new Response("", { status: 503 }));

287290288291

await withFetchPathTest(mockFetch, { DEEPINFRA_API_KEY: "sk-test" }, async () => {

289292

const models = await discoverDeepInfraModels();

@@ -294,14 +297,10 @@ describe("discoverDeepInfraModels (chat-only shim)", () => {

294297

it("falls back without caching malformed successful model list payloads", async () => {

295298

const mockFetch = vi

296299

.fn()

297-

.mockResolvedValueOnce({

298-

ok: true,

299-

json: () => Promise.resolve({ data: {} }),

300-

})

301-

.mockResolvedValueOnce({

302-

ok: true,

303-

json: () => Promise.resolve({ data: [makeAgentModelEntry({ id: "recovered/model" })] }),

304-

});

300+

.mockResolvedValueOnce(jsonResponse({ data: {} }))

301+

.mockResolvedValueOnce(

302+

jsonResponse({ data: [makeAgentModelEntry({ id: "recovered/model" })] }),

303+

);

305304306305

await withFetchPathTest(mockFetch, { DEEPINFRA_API_KEY: "sk-test" }, async () => {

307306

expect((await discoverDeepInfraModels()).map((m) => m.id)).toEqual(

@@ -328,14 +327,8 @@ describe("discoverDeepInfraModels (chat-only shim)", () => {

328327

it("caches successful discovery responses only", async () => {

329328

const mockFetch = vi

330329

.fn()

331-

.mockResolvedValueOnce({

332-

ok: true,

333-

json: () => Promise.resolve({ data: [makeAgentModelEntry({ id: "first/model" })] }),

334-

})

335-

.mockResolvedValueOnce({

336-

ok: true,

337-

json: () => Promise.resolve({ data: [makeAgentModelEntry({ id: "second/model" })] }),

338-

});

330+

.mockResolvedValueOnce(jsonResponse({ data: [makeAgentModelEntry({ id: "first/model" })] }))

331+

.mockResolvedValueOnce(jsonResponse({ data: [makeAgentModelEntry({ id: "second/model" })] }));

339332340333

await withFetchPathTest(mockFetch, { DEEPINFRA_API_KEY: "sk-test" }, async () => {

341334

const expectedIds = expectedLiveChatCatalog([

@@ -359,14 +352,10 @@ describe("discoverDeepInfraModels (chat-only shim)", () => {

359352

it("does not cache successful responses that produce no live catalog rows", async () => {

360353

const mockFetch = vi

361354

.fn()

362-

.mockResolvedValueOnce({

363-

ok: true,

364-

json: () => Promise.resolve({ data: [] }),

365-

})

366-

.mockResolvedValueOnce({

367-

ok: true,

368-

json: () => Promise.resolve({ data: [makeAgentModelEntry({ id: "recovered/model" })] }),

369-

});

355+

.mockResolvedValueOnce(jsonResponse({ data: [] }))

356+

.mockResolvedValueOnce(

357+

jsonResponse({ data: [makeAgentModelEntry({ id: "recovered/model" })] }),

358+

);

370359371360

await withFetchPathTest(mockFetch, { DEEPINFRA_API_KEY: "sk-test" }, async () => {

372361

expect((await discoverDeepInfraModels()).map((m) => m.id)).toEqual(

@@ -393,67 +382,65 @@ describe("discoverDeepInfraModels (chat-only shim)", () => {

393382394383

describe("discoverDeepInfraSurfaces (per-surface bucketing)", () => {

395384

it("buckets dynamic entries by short-alias surface tag", async () => {

396-

const mockFetch = vi.fn().mockResolvedValue({

397-

ok: true,

398-

json: () =>

399-

Promise.resolve({

400-

data: [

401-

makeAgentModelEntry({

402-

id: "anthropic/claude-sonnet-4-6",

403-

metadata: {

404-

description: "claude sonnet 4.6",

405-

context_length: 200000,

406-

max_tokens: 8192,

407-

pricing: { input_tokens: 3, output_tokens: 15 },

408-

tags: ["chat", "vlm", "vision", "prompt_cache"],

409-

},

410-

}),

411-

makeAgentModelEntry({

412-

id: "BAAI/bge-m3",

413-

metadata: {

414-

description: "bge-m3",

415-

pricing: { input_tokens: 0.01 },

416-

tags: ["embed"],

417-

},

418-

}),

419-

makeAgentModelEntry({

420-

id: "black-forest-labs/FLUX-1-schnell",

421-

metadata: {

422-

description: "FLUX schnell",

423-

pricing: { per_image_unit: 0.003 },

424-

tags: ["image-gen"],

425-

default_width: 1024,

426-

default_height: 1024,

427-

default_iterations: 4,

428-

},

429-

}),

430-

makeAgentModelEntry({

431-

id: "Wan-AI/Wan2.6-T2V",

432-

metadata: {

433-

description: "Wan T2V",

434-

pricing: { output_seconds: 0.05 },

435-

tags: ["video-gen"],

436-

},

437-

}),

438-

makeAgentModelEntry({

439-

id: "Qwen/Qwen3-TTS",

440-

metadata: {

441-

description: "Qwen3 TTS",

442-

pricing: { input_characters: 0.65 },

443-

tags: ["tts"],

444-

},

445-

}),

446-

makeAgentModelEntry({

447-

id: "openai/whisper-large-v3-turbo",

448-

metadata: {

449-

description: "whisper",

450-

pricing: { input_seconds: 0.00004 },

451-

tags: ["stt"],

452-

},

453-

}),

454-

],

455-

}),

456-

});

385+

const mockFetch = vi.fn().mockResolvedValue(

386+

jsonResponse({

387+

data: [

388+

makeAgentModelEntry({

389+

id: "anthropic/claude-sonnet-4-6",

390+

metadata: {

391+

description: "claude sonnet 4.6",

392+

context_length: 200000,

393+

max_tokens: 8192,

394+

pricing: { input_tokens: 3, output_tokens: 15 },

395+

tags: ["chat", "vlm", "vision", "prompt_cache"],

396+

},

397+

}),

398+

makeAgentModelEntry({

399+

id: "BAAI/bge-m3",

400+

metadata: {

401+

description: "bge-m3",

402+

pricing: { input_tokens: 0.01 },

403+

tags: ["embed"],

404+

},

405+

}),

406+

makeAgentModelEntry({

407+

id: "black-forest-labs/FLUX-1-schnell",

408+

metadata: {

409+

description: "FLUX schnell",

410+

pricing: { per_image_unit: 0.003 },

411+

tags: ["image-gen"],

412+

default_width: 1024,

413+

default_height: 1024,

414+

default_iterations: 4,

415+

},

416+

}),

417+

makeAgentModelEntry({

418+

id: "Wan-AI/Wan2.6-T2V",

419+

metadata: {

420+

description: "Wan T2V",

421+

pricing: { output_seconds: 0.05 },

422+

tags: ["video-gen"],

423+

},

424+

}),

425+

makeAgentModelEntry({

426+

id: "Qwen/Qwen3-TTS",

427+

metadata: {

428+

description: "Qwen3 TTS",

429+

pricing: { input_characters: 0.65 },

430+

tags: ["tts"],

431+

},

432+

}),

433+

makeAgentModelEntry({

434+

id: "openai/whisper-large-v3-turbo",

435+

metadata: {

436+

description: "whisper",

437+

pricing: { input_seconds: 0.00004 },

438+

tags: ["stt"],

439+

},

440+

}),

441+

],

442+

}),

443+

);

457444458445

await withFetchPathTest(mockFetch, { DEEPINFRA_API_KEY: "sk-test" }, async () => {

459446

const catalog = await discoverDeepInfraSurfaces();

@@ -471,35 +458,33 @@ describe("discoverDeepInfraSurfaces (per-surface bucketing)", () => {

471458

});

472459473460

it("drops malformed live numeric metadata", async () => {

474-

const mockFetch = vi.fn().mockResolvedValue({

475-

ok: true,

476-

json: () =>

477-

Promise.resolve({

478-

data: [

479-

makeAgentModelEntry({

480-

id: "bad/chat",

481-

metadata: {

482-

description: "bad chat",

483-

context_length: -1,

484-

max_tokens: 1.5,

485-

pricing: { input_tokens: 3, output_tokens: 15 },

486-

tags: ["chat"],

487-

},

488-

}),

489-

makeAgentModelEntry({

490-

id: "bad/image",

491-

metadata: {

492-

description: "bad image",

493-

pricing: { per_image_unit: 0.003 },

494-

tags: ["image-gen"],

495-

default_width: Number.POSITIVE_INFINITY,

496-

default_height: 1024.5,

497-

default_iterations: 0,

498-

},

499-

}),

500-

],

501-

}),

502-

});

461+

const mockFetch = vi.fn().mockResolvedValue(

462+

jsonResponse({

463+

data: [

464+

makeAgentModelEntry({

465+

id: "bad/chat",

466+

metadata: {

467+

description: "bad chat",

468+

context_length: -1,

469+

max_tokens: 1.5,

470+

pricing: { input_tokens: 3, output_tokens: 15 },

471+

tags: ["chat"],

472+

},

473+

}),

474+

makeAgentModelEntry({

475+

id: "bad/image",

476+

metadata: {

477+

description: "bad image",

478+

pricing: { per_image_unit: 0.003 },

479+

tags: ["image-gen"],

480+

default_width: Number.POSITIVE_INFINITY,

481+

default_height: 1024.5,

482+

default_iterations: 0,

483+

},

484+

}),

485+

],

486+

}),

487+

);

503488504489

await withFetchPathTest(mockFetch, { DEEPINFRA_API_KEY: "sk-test" }, async () => {

505490

const catalog = await discoverDeepInfraSurfaces();