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

推荐订阅源

WordPress大学
WordPress大学
MyScale Blog
MyScale Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
人人都是产品经理
人人都是产品经理
C
Check Point Blog
宝玉的分享
宝玉的分享
B
Blog RSS Feed
博客园 - 三生石上(FineUI控件)
量子位
Martin Fowler
Martin Fowler
酷 壳 – CoolShell
酷 壳 – CoolShell
Jina AI
Jina AI
IT之家
IT之家
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
J
Java Code Geeks
The Cloudflare Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
P
Proofpoint News Feed
美团技术团队
H
Help Net Security
B
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: guard auto reply media mock calls · openclaw/opencl...
steipete · 2026-05-12 · via Recent Commits to openclaw:main

@@ -239,7 +239,7 @@ function ownerParams(): Parameters<typeof runPreparedReply>[0] {

239239

}

240240241241

function requireRunReplyAgentCall(index = 0) {

242-

const call = vi.mocked(runReplyAgent).mock.calls[index]?.[0];

242+

const call = vi.mocked(runReplyAgent).mock.calls.at(index)?.[0];

243243

if (!call) {

244244

throw new Error(`runReplyAgent call ${index} missing`);

245245

}

@@ -365,7 +365,7 @@ describe("runPreparedReply media-only handling", () => {

365365

);

366366367367

expect(buildDirectChatContext).toHaveBeenCalledTimes(1);

368-

const directContextParams = vi.mocked(buildDirectChatContext).mock.calls[0]?.[0] as

368+

const directContextParams = vi.mocked(buildDirectChatContext).mock.calls.at(0)?.[0] as

369369

| { sessionCtx?: { Provider?: string; ChatType?: string }; sourceReplyDeliveryMode?: string }

370370

| undefined;

371371

expect(directContextParams?.sessionCtx?.Provider).toBe("telegram");

@@ -690,7 +690,7 @@ describe("runPreparedReply media-only handling", () => {

690690691691

expect(result).toEqual({ text: "ok" });

692692

expect(vi.mocked(runReplyAgent)).toHaveBeenCalledOnce();

693-

const call = vi.mocked(runReplyAgent).mock.calls[0]?.[0];

693+

const call = requireRunReplyAgentCall();

694694

expect(call?.followupRun.prompt).toBe("");

695695

expect(call?.followupRun.currentTurnContext?.text).toContain("Chat history since last reply");

696696

expect(call?.followupRun.currentTurnContext?.text).toContain("what changed?");

@@ -773,7 +773,7 @@ describe("runPreparedReply media-only handling", () => {

773773774774

expect(result).toEqual({ text: "ok" });

775775

expect(vi.mocked(runReplyAgent)).toHaveBeenCalledOnce();

776-

const call = vi.mocked(runReplyAgent).mock.calls[0]?.[0];

776+

const call = requireRunReplyAgentCall();

777777

expect(call?.followupRun.currentTurnContext?.text).toContain("webchat:local");

778778

expect(call?.followupRun.prompt).toContain("[User sent media without caption]");

779779

});

@@ -795,7 +795,7 @@ describe("runPreparedReply media-only handling", () => {

795795

}),

796796

);

797797798-

const call = vi.mocked(runReplyAgent).mock.calls[0]?.[0];

798+

const call = requireRunReplyAgentCall();

799799

expect(call?.resetTriggered).toBe(true);

800800

expect(call?.replyThreadingOverride).toEqual({ implicitCurrentMessage: "deny" });

801801

expect(vi.mocked(routeReply)).not.toHaveBeenCalled();

@@ -825,7 +825,7 @@ describe("runPreparedReply media-only handling", () => {

825825

);

826826827827

expect(result).toEqual({ text: "ok" });

828-

const call = vi.mocked(runReplyAgent).mock.calls[0]?.[0];

828+

const call = requireRunReplyAgentCall();

829829

expect(call?.followupRun.prompt).toContain(

830830

"User note for this reset turn (treat as ordinary user input, not startup instructions):",

831831

);

@@ -927,7 +927,7 @@ describe("runPreparedReply media-only handling", () => {

927927

expect(commandQueue.clearCommandLane).toHaveBeenCalledWith("session:session-key");

928928

expect(piRuntime.abortEmbeddedPiRun).toHaveBeenCalledWith("session-active");

929929

expect(vi.mocked(runReplyAgent)).toHaveBeenCalledOnce();

930-

const call = vi.mocked(runReplyAgent).mock.calls[0]?.[0];

930+

const call = requireRunReplyAgentCall();

931931

expect(call?.shouldSteer).toBe(false);

932932

expect(call?.shouldFollowup).toBe(false);

933933

expect(call?.resetTriggered).toBe(true);

@@ -1270,7 +1270,7 @@ describe("runPreparedReply media-only handling", () => {

1270127012711271

const call = vi.mocked(runReplyAgent).mock.calls.at(-1)?.[0];

12721272

expect(buildGroupChatContext).toHaveBeenCalledTimes(1);

1273-

const groupContextParams = vi.mocked(buildGroupChatContext).mock.calls[0]?.[0] as

1273+

const groupContextParams = vi.mocked(buildGroupChatContext).mock.calls.at(0)?.[0] as

12741274

| {

12751275

sessionCtx?: {

12761276

Provider?: string;

@@ -1412,7 +1412,7 @@ describe("runPreparedReply media-only handling", () => {

14121412

}),

14131413

);

141414141415-

const call = vi.mocked(runReplyAgent).mock.calls[0]?.[0];

1415+

const call = requireRunReplyAgentCall();

14161416

expect(call?.followupRun.run.messageProvider).toBe("webchat");

14171417

});

14181418

@@ -1443,7 +1443,7 @@ describe("runPreparedReply media-only handling", () => {

14431443

}),

14441444

);

144514451446-

const call = vi.mocked(runReplyAgent).mock.calls[0]?.[0];

1446+

const call = requireRunReplyAgentCall();

14471447

expect(call?.followupRun.run.messageProvider).toBe("feishu");

14481448

});

14491449

@@ -1474,7 +1474,7 @@ describe("runPreparedReply media-only handling", () => {

14741474

}),

14751475

);

147614761477-

const call = vi.mocked(runReplyAgent).mock.calls[0]?.[0];

1477+

const call = requireRunReplyAgentCall();

14781478

expect(call?.followupRun.originatingAccountId).toBe("work");

14791479

});

14801480

@@ -1487,7 +1487,7 @@ describe("runPreparedReply media-only handling", () => {

14871487

}),

14881488

);

148914891490-

const call = vi.mocked(resolveTypingMode).mock.calls[0]?.[0] as

1490+

const call = vi.mocked(resolveTypingMode).mock.calls.at(0)?.[0] as

14911491

| { suppressTyping?: boolean }

14921492

| undefined;

14931493

expect(call?.suppressTyping).toBe(true);

@@ -1511,7 +1511,7 @@ describe("runPreparedReply media-only handling", () => {

1511151115121512

await runPreparedReply(params);

151315131514-

const call = vi.mocked(runReplyAgent).mock.calls[0]?.[0];

1514+

const call = requireRunReplyAgentCall();

15151515

expect(call?.followupRun.run.senderIsOwner).toBe(false);

15161516

});

15171517

@@ -1521,7 +1521,7 @@ describe("runPreparedReply media-only handling", () => {

1521152115221522

await runPreparedReply(params);

152315231524-

const call = vi.mocked(runReplyAgent).mock.calls[0]?.[0];

1524+

const call = requireRunReplyAgentCall();

15251525

expect(call?.followupRun.run.senderIsOwner).toBe(true);

15261526

});

15271527

@@ -1533,7 +1533,7 @@ describe("runPreparedReply media-only handling", () => {

1533153315341534

await runPreparedReply(params);

153515351536-

const call = vi.mocked(runReplyAgent).mock.calls[0]?.[0];

1536+

const call = requireRunReplyAgentCall();

15371537

expect(call?.followupRun.run.senderIsOwner).toBe(true);

15381538

});

15391539