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

推荐订阅源

量子位
WordPress大学
WordPress大学
小众软件
小众软件
云风的 BLOG
云风的 BLOG
IT之家
IT之家
人人都是产品经理
人人都是产品经理
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
T
Tailwind CSS Blog
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
宝玉的分享
宝玉的分享
博客园 - Franky
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
D
Docker
博客园 - 聂微东
C
Check Point Blog
H
Help Net Security

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
fix: skip unresolved delivery targets for no-deliver cron...
steipete · 2026-04-26 · via Recent Commits to openclaw:main

@@ -271,6 +271,28 @@ describe("runCronIsolatedAgentTurn message tool policy", () => {

271271

});

272272

});

273273274+

it('skips implicit target resolution for bare delivery.mode "none"', async () => {

275+

mockRunCronFallbackPassthrough();

276+

resolveCronDeliveryPlanMock.mockReturnValue({

277+

requested: false,

278+

mode: "none",

279+

});

280+281+

await runCronIsolatedAgentTurn({

282+

...makeParams(),

283+

job: makeMessageToolPolicyJob({ mode: "none" }),

284+

});

285+286+

expect(resolveDeliveryTargetMock).not.toHaveBeenCalled();

287+

expect(runEmbeddedPiAgentMock).toHaveBeenCalledTimes(1);

288+

expect(runEmbeddedPiAgentMock.mock.calls[0]?.[0]).toMatchObject({

289+

disableMessageTool: false,

290+

forceMessageTool: true,

291+

});

292+

expect(runEmbeddedPiAgentMock.mock.calls[0]?.[0]?.messageChannel).toBeUndefined();

293+

expect(runEmbeddedPiAgentMock.mock.calls[0]?.[0]?.messageTo).toBeUndefined();

294+

});

295+274296

it('suppresses automatic exec completion notifications when delivery.mode is "none"', async () => {

275297

mockRunCronFallbackPassthrough();

276298

resolveCronDeliveryPlanMock.mockReturnValue({

@@ -353,7 +375,7 @@ describe("runCronIsolatedAgentTurn message tool policy", () => {

353375

});

354376

});

355377356-

it("resolves implicit last-target context for bare delivery.mode none", async () => {

378+

it('does not resolve implicit "last" context for bare delivery.mode none', async () => {

357379

mockRunCronFallbackPassthrough();

358380

resolveCronDeliveryPlanMock.mockReturnValue({

359381

requested: false,

@@ -373,19 +395,14 @@ describe("runCronIsolatedAgentTurn message tool policy", () => {

373395

} as never,

374396

});

375397376-

expect(resolveDeliveryTargetMock).toHaveBeenCalledTimes(1);

377-

expect(resolveDeliveryTargetMock.mock.calls[0]?.[2]).toMatchObject({

378-

channel: "last",

379-

sessionKey: undefined,

380-

});

398+

expect(resolveDeliveryTargetMock).not.toHaveBeenCalled();

381399

expect(runEmbeddedPiAgentMock).toHaveBeenCalledTimes(1);

382400

expect(runEmbeddedPiAgentMock.mock.calls[0]?.[0]).toMatchObject({

383401

disableMessageTool: false,

384402

forceMessageTool: true,

385-

messageChannel: "messagechat",

386-

messageTo: "123",

387-

currentChannelId: "123",

388403

});

404+

expect(runEmbeddedPiAgentMock.mock.calls[0]?.[0]?.messageChannel).toBeUndefined();

405+

expect(runEmbeddedPiAgentMock.mock.calls[0]?.[0]?.messageTo).toBeUndefined();

389406

});

390407391408

it("resolves implicit last-target context for delivery.mode none with only accountId", async () => {

@@ -690,7 +707,7 @@ describe("runCronIsolatedAgentTurn message tool policy", () => {

690707

);

691708

});

692709693-

it("marks no-deliver runs delivered when the message tool sends to the current target", async () => {

710+

it("does not mark bare no-deliver runs delivered when the current target is unresolved", async () => {

694711

mockRunCronFallbackPassthrough();

695712

resolveCronDeliveryPlanMock.mockReturnValue({

696713

requested: false,

@@ -707,11 +724,12 @@ describe("runCronIsolatedAgentTurn message tool policy", () => {

707724

expect(dispatchCronDeliveryMock.mock.calls[0]?.[0]).toEqual(

708725

expect.objectContaining({

709726

deliveryRequested: false,

710-

skipMessagingToolDelivery: true,

727+

skipMessagingToolDelivery: false,

728+

unverifiedMessagingToolDelivery: true,

711729

}),

712730

);

713-

expect(result.delivered).toBe(true);

714-

expect(result.deliveryAttempted).toBe(true);

731+

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

732+

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

715733

});

716734

});

717735