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

推荐订阅源

N
News and Events Feed by Topic
V
V2EX
博客园 - 【当耐特】
Vercel News
Vercel News
雷峰网
雷峰网
爱范儿
爱范儿
WordPress大学
WordPress大学
云风的 BLOG
云风的 BLOG
S
Securelist
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Microsoft Azure Blog
Microsoft Azure Blog
F
Full Disclosure
有赞技术团队
有赞技术团队
Hugging Face - Blog
Hugging Face - Blog
NISL@THU
NISL@THU
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Attack and Defense Labs
Attack and Defense Labs
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
P
Proofpoint News Feed
B
Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
K
Kaspersky official blog
I
InfoQ
Google Online Security Blog
Google Online Security Blog
L
LINUX DO - 最新话题
Project Zero
Project Zero
Engineering at Meta
Engineering at Meta
V
Visual Studio Blog
AI
AI
Schneier on Security
Schneier on Security
B
Blog RSS Feed
T
Tor Project blog
H
Help Net Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
LINUX DO - 热门话题
阮一峰的网络日志
阮一峰的网络日志
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Cyber Attacks, Cyber Crime and Cyber Security
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
V2EX - 技术
V2EX - 技术
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
Arctic Wolf
Webroot Blog
Webroot Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main

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: complete auto reply mock call helpers · openclaw/openclaw@b5f2e4b
steipete · 2026-05-13 · via Recent Commits to openclaw:main

@@ -702,12 +702,21 @@ function createMockAcpSessionManager() {

702702

};

703703

}

704704705-

function firstMockArg(mockFn: ReturnType<typeof vi.fn>, label: string, index = 0): unknown {

706-

const call = mockFn.mock.calls.at(index);

705+

function firstMockCall(mockFn: ReturnType<typeof vi.fn>, label: string, index = 0): unknown[] {

706+

const call = mockFn.mock.calls[index] as unknown[] | undefined;

707707

if (!call) {

708708

throw new Error(`expected ${label} call #${index + 1}`);

709709

}

710-

return call.at(0);

710+

return call;

711+

}

712+713+

function firstMockArg(

714+

mockFn: ReturnType<typeof vi.fn>,

715+

label: string,

716+

index = 0,

717+

argIndex = 0,

718+

): unknown {

719+

return firstMockCall(mockFn, label, index)[argIndex];

711720

}

712721713722

function firstToolResultPayload(dispatcher: ReplyDispatcher): ReplyPayload | undefined {

@@ -997,7 +1006,7 @@ describe("dispatchReplyFromConfig", () => {

9971006

.calls[0]?.[0] as { accountId?: unknown; messageProvider?: unknown } | undefined;

9981007

expect(normalizerOptions?.messageProvider).toBe("telegram");

9991008

expect(normalizerOptions?.accountId).toBe("acc-1");

1000-

const replyDispatchCall = hookMocks.runner.runReplyDispatch.mock.calls.at(0) as

1009+

const replyDispatchCall = firstMockCall(hookMocks.runner.runReplyDispatch, "reply dispatch") as

10011010

| [

10021011

{

10031012

originatingChannel?: unknown;

@@ -1082,7 +1091,7 @@ describe("dispatchReplyFromConfig", () => {

10821091

expect(mocks.routeReply).not.toHaveBeenCalled();

10831092

expect(dispatcher.sendFinalReply).not.toHaveBeenCalled();

10841093

expect(result.queuedFinal).toBe(false);

1085-

const replyDispatchCall = hookMocks.runner.runReplyDispatch.mock.calls.at(0) as

1094+

const replyDispatchCall = firstMockCall(hookMocks.runner.runReplyDispatch, "reply dispatch") as

10861095

| [

10871096

{

10881097

originatingChannel?: unknown;

@@ -2077,7 +2086,7 @@ describe("dispatchReplyFromConfig", () => {

20772086

await dispatchReplyFromConfig({ ctx, cfg, dispatcher, replyResolver });

2078208720792088

expect(replyResolver).not.toHaveBeenCalled();

2080-

const ensureSessionOptions = runtime.ensureSession.mock.calls.at(0)?.[0] as

2089+

const ensureSessionOptions = firstMockArg(runtime.ensureSession, "ensure session") as

20812090

| { agent?: unknown; mode?: unknown; sessionKey?: unknown }

20822091

| undefined;

20832092

expect(ensureSessionOptions?.sessionKey).toBe("agent:codex-acp:session-1");

@@ -2421,7 +2430,10 @@ describe("dispatchReplyFromConfig", () => {

2421243024222431

await dispatchReplyFromConfig({ ctx, cfg, dispatcher, replyResolver });

242324322424-

const bindingLookup = sessionBindingMocks.resolveByConversation.mock.calls.at(0)?.[0];

2433+

const bindingLookup = firstMockArg(

2434+

sessionBindingMocks.resolveByConversation,

2435+

"conversation binding lookup",

2436+

) as { accountId?: unknown; channel?: unknown; conversationId?: unknown } | undefined;

24252437

expect(bindingLookup?.channel).toBe("discord");

24262438

expect(bindingLookup?.accountId).toBe("work");

24272439

expect(bindingLookup?.conversationId).toBe("thread-1");

@@ -2506,17 +2518,20 @@ describe("dispatchReplyFromConfig", () => {

25062518

conversationId: "C123",

25072519

});

25082520

expect(sessionBindingMocks.touch).toHaveBeenCalledWith("binding-acp-current");

2509-

const ensureSessionOptions = runtime.ensureSession.mock.calls.at(0)?.[0] as

2521+

const ensureSessionOptions = firstMockArg(runtime.ensureSession, "ensure session") as

25102522

| { agent?: unknown; sessionKey?: unknown }

25112523

| undefined;

25122524

expect(ensureSessionOptions?.sessionKey).toBe(boundSessionKey);

25132525

expect(ensureSessionOptions?.agent).toBe("opencode");

2514-

const runTurnOptions = runtime.runTurn.mock.calls.at(0)?.[0] as { text?: unknown } | undefined;

2526+

const runTurnOptions = firstMockArg(runtime.runTurn, "run turn") as

2527+

| { text?: unknown }

2528+

| undefined;

25152529

expect(runTurnOptions?.text).toBe("continue");

25162530

expect(replyResolver).not.toHaveBeenCalled();

2517-

const blockPayload = (dispatcher.sendBlockReply as Mock).mock.calls.at(0)?.[0] as

2518-

| ReplyPayload

2519-

| undefined;

2531+

const blockPayload = firstMockArg(

2532+

dispatcher.sendBlockReply as ReturnType<typeof vi.fn>,

2533+

"block reply",

2534+

) as ReplyPayload | undefined;

25202535

expect(blockPayload?.text).toBe("Bound ACP reply");

25212536

});

25222537

@@ -2706,7 +2721,9 @@ describe("dispatchReplyFromConfig", () => {

2706272127072722

await dispatchReplyFromConfig({ ctx, cfg, dispatcher });

270827232709-

const closeOptions = runtime.close.mock.calls.at(0)?.[0] as { reason?: unknown } | undefined;

2724+

const closeOptions = firstMockArg(runtime.close, "runtime close") as

2725+

| { reason?: unknown }

2726+

| undefined;

27102727

expect(closeOptions?.reason).toBe("oneshot-complete");

27112728

});

27122729

@@ -2927,7 +2944,10 @@ describe("dispatchReplyFromConfig", () => {

29272944

const replyResolver = async () => ({ text: "hi" }) satisfies ReplyPayload;

29282945

await dispatchReplyFromConfig({ ctx, cfg, dispatcher, replyResolver });

292929462930-

const [event, hookContext] = hookMocks.runner.runMessageReceived.mock.calls.at(0) as

2947+

const [event, hookContext] = firstMockCall(

2948+

hookMocks.runner.runMessageReceived,

2949+

"message received hook",

2950+

) as

29312951

| [

29322952

{

29332953

content?: unknown;

@@ -2988,7 +3008,10 @@ describe("dispatchReplyFromConfig", () => {

2988300829893009

expect(result).toEqual({ queuedFinal: true, counts: { tool: 0, block: 0, final: 0 } });

29903010

expect(hookMocks.runner.runInboundClaim).not.toHaveBeenCalled();

2991-

const [event, hookContext] = hookMocks.runner.runMessageReceived.mock.calls.at(0) as

3011+

const [event, hookContext] = firstMockCall(

3012+

hookMocks.runner.runMessageReceived,

3013+

"message received hook",

3014+

) as

29923015

| [

29933016

{ content?: unknown; from?: unknown; metadata?: Record<string, unknown> },

29943017

{ accountId?: unknown; channelId?: unknown; conversationId?: unknown },

@@ -3034,7 +3057,10 @@ describe("dispatchReplyFromConfig", () => {

30343057

const replyResolver = async () => ({ text: "hi" }) satisfies ReplyPayload;

30353058

await dispatchReplyFromConfig({ ctx, cfg, dispatcher, replyResolver });

303630593037-

const createHookCall = internalHookMocks.createInternalHookEvent.mock.calls.at(0) as

3060+

const createHookCall = firstMockCall(

3061+

internalHookMocks.createInternalHookEvent,

3062+

"internal hook event",

3063+

) as

30383064

| [

30393065

unknown,

30403066

unknown,

@@ -3094,9 +3120,10 @@ describe("dispatchReplyFromConfig", () => {

30943120

const replyResolver = async () => ({ text: "reply" }) satisfies ReplyPayload;

30953121

await dispatchReplyFromConfig({ ctx, cfg, dispatcher, replyResolver });

309631223097-

const createHookCall = internalHookMocks.createInternalHookEvent.mock.calls.at(0) as

3098-

| [unknown, unknown, unknown, { content?: unknown; messageId?: unknown }]

3099-

| undefined;

3123+

const createHookCall = firstMockCall(

3124+

internalHookMocks.createInternalHookEvent,

3125+

"internal hook event",

3126+

) as [unknown, unknown, unknown, { content?: unknown; messageId?: unknown }] | undefined;

31003127

expect(createHookCall?.[0]).toBe("message");

31013128

expect(createHookCall?.[1]).toBe("received");

31023129

expect(createHookCall?.[2]).toBe("agent:main:discord:guild:123");

@@ -3126,9 +3153,10 @@ describe("dispatchReplyFromConfig", () => {

31263153

state: "processing",

31273154

reason: "message_start",

31283155

});

3129-

const processedEvent = diagnosticMocks.logMessageProcessed.mock.calls.at(0)?.[0] as

3130-

| { channel?: unknown; outcome?: unknown; sessionKey?: unknown }

3131-

| undefined;

3156+

const processedEvent = firstMockArg(

3157+

diagnosticMocks.logMessageProcessed,

3158+

"message processed",

3159+

) as { channel?: unknown; outcome?: unknown; sessionKey?: unknown } | undefined;

31323160

expect(processedEvent?.channel).toBe("slack");

31333161

expect(processedEvent?.outcome).toBe("completed");

31343162

expect(processedEvent?.sessionKey).toBe("agent:main:main");

@@ -3569,9 +3597,10 @@ describe("dispatchReplyFromConfig", () => {

35693597

replyResolver,

35703598

});

357135993572-

const notice = (dispatcher.sendToolResult as ReturnType<typeof vi.fn>).mock.calls.at(0)?.[0] as

3573-

| ReplyPayload

3574-

| undefined;

3600+

const notice = firstMockArg(

3601+

dispatcher.sendToolResult as ReturnType<typeof vi.fn>,

3602+

"tool result",

3603+

) as ReplyPayload | undefined;

35753604

expect(notice?.text).toContain("is not currently loaded.");

35763605

expect(replyResolver).toHaveBeenCalledTimes(1);

35773606

expect(hookMocks.runner.runInboundClaim).not.toHaveBeenCalled();

@@ -4165,7 +4194,10 @@ describe("before_dispatch hook", () => {

4165419441664195

const result = await dispatchReplyFromConfig({ ctx, cfg: emptyConfig, dispatcher });

416741964168-

const beforeDispatchCall = hookMocks.runner.runBeforeDispatch.mock.calls.at(0) as

4197+

const beforeDispatchCall = firstMockCall(

4198+

hookMocks.runner.runBeforeDispatch,

4199+

"before dispatch hook",

4200+

) as

41694201

| [

41704202

{

41714203

body?: unknown;