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

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
H
Help Net Security
Last Week in AI
Last Week in AI
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
IT之家
IT之家
aimingoo的专栏
aimingoo的专栏
大猫的无限游戏
大猫的无限游戏
Jina AI
Jina AI
Google DeepMind News
Google DeepMind News
B
Blog
C
Check Point Blog
T
Tailwind CSS Blog
云风的 BLOG
云风的 BLOG
D
Docker
Recent Announcements
Recent Announcements
Vercel News
Vercel News
博客园 - 聂微东
阮一峰的网络日志
阮一峰的网络日志
MyScale Blog
MyScale Blog
The GitHub Blog
The GitHub Blog
Stack Overflow Blog
Stack Overflow Blog
雷峰网
雷峰网
人人都是产品经理
人人都是产品经理
月光博客
月光博客
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
B
Blog RSS Feed
The Register - Security
The Register - Security
V
Visual Studio Blog
F
Full Disclosure
Hugging Face - Blog
Hugging Face - Blog
T
Threat Research - Cisco Blogs
Latest news
Latest news
PCI Perspectives
PCI Perspectives
Cisco Talos Blog
Cisco Talos Blog
博客园 - Franky
D
DataBreaches.Net
A
Arctic Wolf
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
Google Developers Blog
P
Palo Alto Networks Blog
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
T
Tenable Blog
L
LINUX DO - 热门话题
Spread Privacy
Spread Privacy

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 daemon restart health broad matchers · openclaw/openclaw@9a51d5a
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -54,6 +54,12 @@ function makeGatewayService(

5454

} as unknown as GatewayService;

5555

}

565657+

function firstCallArg<T>(mock: { mock: { calls: unknown[][] } }): T {

58+

const call = mock.mock.calls[0];

59+

expect(call).toBeDefined();

60+

return call?.[0] as T;

61+

}

62+5763

async function inspectGatewayRestartWithSnapshot(params: {

5864

runtime: { status: "running"; pid: number } | { status: "stopped" };

5965

portUsage: PortUsage;

@@ -235,9 +241,7 @@ describe("inspectGatewayRestart", () => {

235241

});

236242237243

expect(snapshot.healthy).toBe(true);

238-

expect(probeGateway).toHaveBeenCalledWith(

239-

expect.objectContaining({ url: "ws://127.0.0.1:18789" }),

240-

);

244+

expect(firstCallArg<{ url?: string }>(probeGateway).url).toBe("ws://127.0.0.1:18789");

241245

});

242246243247

it("treats a busy port as healthy when runtime status lags but the probe succeeds", async () => {

@@ -335,15 +339,11 @@ describe("inspectGatewayRestart", () => {

335339

},

336340

});

337341338-

expect(snapshot).toMatchObject({

339-

healthy: false,

340-

gatewayVersion: "2026.4.23",

341-

expectedVersion: "2026.4.24",

342-

versionMismatch: {

343-

expected: "2026.4.24",

344-

actual: "2026.4.23",

345-

},

346-

});

342+

expect(snapshot.healthy).toBe(false);

343+

expect(snapshot.gatewayVersion).toBe("2026.4.23");

344+

expect(snapshot.expectedVersion).toBe("2026.4.24");

345+

expect(snapshot.versionMismatch?.expected).toBe("2026.4.24");

346+

expect(snapshot.versionMismatch?.actual).toBe("2026.4.23");

347347

});

348348349349

it("accepts the restarted gateway when the expected version matches", async () => {

@@ -364,11 +364,9 @@ describe("inspectGatewayRestart", () => {

364364

},

365365

});

366366367-

expect(snapshot).toMatchObject({

368-

healthy: true,

369-

gatewayVersion: "2026.4.24",

370-

expectedVersion: "2026.4.24",

371-

});

367+

expect(snapshot.healthy).toBe(true);

368+

expect(snapshot.gatewayVersion).toBe("2026.4.24");

369+

expect(snapshot.expectedVersion).toBe("2026.4.24");

372370

expect(snapshot.versionMismatch).toBeUndefined();

373371

});

374372

@@ -393,11 +391,9 @@ describe("inspectGatewayRestart", () => {

393391

},

394392

});

395393396-

expect(snapshot).toMatchObject({

397-

healthy: true,

398-

gatewayVersion: "2026.4.24",

399-

expectedVersion: "2026.4.24",

400-

});

394+

expect(snapshot.healthy).toBe(true);

395+

expect(snapshot.gatewayVersion).toBe("2026.4.24");

396+

expect(snapshot.expectedVersion).toBe("2026.4.24");

401397

expect(snapshot.versionMismatch).toBeUndefined();

402398

});

403399

@@ -434,23 +430,23 @@ describe("inspectGatewayRestart", () => {

434430

env: serviceEnv,

435431

});

436432437-

expect(snapshot).toMatchObject({

438-

healthy: true,

439-

gatewayVersion: "2026.4.24",

440-

expectedVersion: "2026.4.24",

441-

});

442-

expect(resolveGatewayProbeAuthSafeWithSecretInputs).toHaveBeenCalledWith(

443-

expect.objectContaining({

444-

cfg: { gateway: { auth: { mode: "token", token: "probe-token" } } },

445-

mode: "local",

446-

}),

447-

);

448-

expect(probeGateway).toHaveBeenCalledWith(

449-

expect.objectContaining({

450-

auth: { token: "probe-token", password: undefined },

451-

env: serviceEnv,

452-

}),

453-

);

433+

expect(snapshot.healthy).toBe(true);

434+

expect(snapshot.gatewayVersion).toBe("2026.4.24");

435+

expect(snapshot.expectedVersion).toBe("2026.4.24");

436+

const authResolveInput = firstCallArg<{

437+

cfg?: { gateway?: { auth?: { mode?: string; token?: string } } };

438+

mode?: string;

439+

}>(resolveGatewayProbeAuthSafeWithSecretInputs);

440+

expect(authResolveInput.cfg?.gateway?.auth?.mode).toBe("token");

441+

expect(authResolveInput.cfg?.gateway?.auth?.token).toBe("probe-token");

442+

expect(authResolveInput.mode).toBe("local");

443+

const probeInput = firstCallArg<{

444+

auth?: { token?: string; password?: string };

445+

env?: NodeJS.ProcessEnv;

446+

}>(probeGateway);

447+

expect(probeInput.auth?.token).toBe("probe-token");

448+

expect(probeInput.auth?.password).toBeUndefined();

449+

expect(probeInput.env).toBe(serviceEnv);

454450

});

455451456452

it("stops waiting once the restarted gateway reports the wrong version", async () => {

@@ -473,15 +469,11 @@ describe("inspectGatewayRestart", () => {

473469

expectedVersion: "2026.4.24",

474470

});

475471476-

expect(snapshot).toMatchObject({

477-

healthy: false,

478-

waitOutcome: "version-mismatch",

479-

elapsedMs: 0,

480-

versionMismatch: {

481-

expected: "2026.4.24",

482-

actual: "2026.4.23",

483-

},

484-

});

472+

expect(snapshot.healthy).toBe(false);

473+

expect(snapshot.waitOutcome).toBe("version-mismatch");

474+

expect(snapshot.elapsedMs).toBe(0);

475+

expect(snapshot.versionMismatch?.expected).toBe("2026.4.24");

476+

expect(snapshot.versionMismatch?.actual).toBe("2026.4.23");

485477

expect(sleep).not.toHaveBeenCalled();

486478

});

487479

@@ -522,21 +514,19 @@ describe("inspectGatewayRestart", () => {

522514

},

523515

});

524516525-

expect(snapshot).toMatchObject({

526-

healthy: false,

527-

gatewayVersion: "2026.4.24",

528-

expectedVersion: "2026.4.24",

529-

activatedPluginErrors: [

530-

{

531-

id: "telegram",

532-

origin: "bundled",

533-

activated: true,

534-

error: "failed to load plugin dependency: ENOSPC",

535-

},

536-

],

537-

});

517+

expect(snapshot.healthy).toBe(false);

518+

expect(snapshot.gatewayVersion).toBe("2026.4.24");

519+

expect(snapshot.expectedVersion).toBe("2026.4.24");

520+

expect(snapshot.activatedPluginErrors).toEqual([

521+

{

522+

id: "telegram",

523+

origin: "bundled",

524+

activated: true,

525+

error: "failed to load plugin dependency: ENOSPC",

526+

},

527+

]);

538528

expect(snapshot.versionMismatch).toBeUndefined();

539-

expect(probeGateway).toHaveBeenCalledWith(expect.objectContaining({ includeDetails: true }));

529+

expect(firstCallArg<{ includeDetails?: boolean }>(probeGateway).includeDetails).toBe(true);

540530541531

const { renderRestartDiagnostics } = await import("./restart-health.js");

542532

expect(renderRestartDiagnostics(snapshot).join("\n")).toContain(

@@ -577,12 +567,10 @@ describe("inspectGatewayRestart", () => {

577567

expectedVersion: "2026.4.24",

578568

});

579569580-

expect(snapshot).toMatchObject({

581-

healthy: false,

582-

waitOutcome: "plugin-errors",

583-

elapsedMs: 0,

584-

activatedPluginErrors: [expect.objectContaining({ id: "telegram" })],

585-

});

570+

expect(snapshot.healthy).toBe(false);

571+

expect(snapshot.waitOutcome).toBe("plugin-errors");

572+

expect(snapshot.elapsedMs).toBe(0);

573+

expect(snapshot.activatedPluginErrors?.[0]?.id).toBe("telegram");

586574

expect(sleep).not.toHaveBeenCalled();

587575

});

588576

@@ -615,12 +603,12 @@ describe("inspectGatewayRestart", () => {

615603

expectedVersion: "2026.4.24",

616604

});

617605618-

expect(snapshot).toMatchObject({

619-

healthy: false,

620-

waitOutcome: "channel-errors",

621-

elapsedMs: 0,

622-

channelProbeErrors: [{ id: "telegram", error: "This operation was aborted" }],

623-

});

606+

expect(snapshot.healthy).toBe(false);

607+

expect(snapshot.waitOutcome).toBe("channel-errors");

608+

expect(snapshot.elapsedMs).toBe(0);

609+

expect(snapshot.channelProbeErrors).toEqual([

610+

{ id: "telegram", error: "This operation was aborted" },

611+

]);

624612

expect(sleep).not.toHaveBeenCalled();

625613

});

626614

@@ -649,13 +637,11 @@ describe("inspectGatewayRestart", () => {

649637

it("annotates stopped-free early exits with the actual elapsed time", async () => {

650638

const snapshot = await waitForStoppedFreeGatewayRestart();

651639652-

expect(snapshot).toMatchObject({

653-

healthy: false,

654-

runtime: { status: "stopped" },

655-

portUsage: { status: "free" },

656-

waitOutcome: "stopped-free",

657-

elapsedMs: 12_500,

658-

});

640+

expect(snapshot.healthy).toBe(false);

641+

expect(snapshot.runtime.status).toBe("stopped");

642+

expect(snapshot.portUsage.status).toBe("free");

643+

expect(snapshot.waitOutcome).toBe("stopped-free");

644+

expect(snapshot.elapsedMs).toBe(12_500);

659645

expect(sleep).toHaveBeenCalledTimes(25);

660646

});

661647

@@ -664,13 +650,11 @@ describe("inspectGatewayRestart", () => {

664650665651

const snapshot = await waitForStoppedFreeGatewayRestart();

666652667-

expect(snapshot).toMatchObject({

668-

healthy: false,

669-

runtime: { status: "stopped" },

670-

portUsage: { status: "free" },

671-

waitOutcome: "stopped-free",

672-

elapsedMs: 92_500,

673-

});

653+

expect(snapshot.healthy).toBe(false);

654+

expect(snapshot.runtime.status).toBe("stopped");

655+

expect(snapshot.portUsage.status).toBe("free");

656+

expect(snapshot.waitOutcome).toBe("stopped-free");

657+

expect(snapshot.elapsedMs).toBe(92_500);

674658

expect(sleep).toHaveBeenCalledTimes(185);

675659

});

676660

@@ -704,13 +688,11 @@ describe("inspectGatewayRestart", () => {

704688

delayMs: 1_000,

705689

});

706690707-

expect(snapshot).toMatchObject({

708-

healthy: true,

709-

gatewayVersion: "2026.4.26",

710-

expectedVersion: "2026.4.26",

711-

waitOutcome: "healthy",

712-

elapsedMs: 1_000,

713-

});

691+

expect(snapshot.healthy).toBe(true);

692+

expect(snapshot.gatewayVersion).toBe("2026.4.26");

693+

expect(snapshot.expectedVersion).toBe("2026.4.26");

694+

expect(snapshot.waitOutcome).toBe("healthy");

695+

expect(snapshot.elapsedMs).toBe(1_000);

714696

expect(snapshot.versionMismatch).toBeUndefined();

715697

expect(sleep).toHaveBeenCalledTimes(1);

716698

});

@@ -732,13 +714,12 @@ describe("inspectGatewayRestart", () => {

732714

delayMs: 1_000,

733715

});

734716735-

expect(snapshot).toMatchObject({

736-

healthy: false,

737-

runtime: { status: "running", pid: 8000 },

738-

portUsage: { status: "free" },

739-

waitOutcome: "timeout",

740-

elapsedMs: 4_000,

741-

});

717+

expect(snapshot.healthy).toBe(false);

718+

expect(snapshot.runtime.status).toBe("running");

719+

expect(snapshot.runtime.pid).toBe(8000);

720+

expect(snapshot.portUsage.status).toBe("free");

721+

expect(snapshot.waitOutcome).toBe("timeout");

722+

expect(snapshot.elapsedMs).toBe(4_000);

742723

expect(sleep).toHaveBeenCalledTimes(4);

743724

});

744725

});