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

推荐订阅源

腾讯CDC
The Cloudflare Blog
IT之家
IT之家
V
V2EX
雷峰网
雷峰网
MyScale Blog
MyScale Blog
P
Proofpoint News Feed
Stack Overflow Blog
Stack Overflow Blog
博客园 - Franky
Engineering at Meta
Engineering at Meta
S
SegmentFault 最新的问题
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
小众软件
小众软件
博客园 - 叶小钗
Blog — PlanetScale
Blog — PlanetScale
C
Check Point Blog
A
About on SuperTechFans
B
Blog
月光博客
月光博客
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI

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
chore(deadcode): drop unused cron summary guard · opencla...
vincentkoc · 2026-06-21 · via Recent Commits to openclaw:main

@@ -149,7 +149,6 @@ import {

149149

} from "../../infra/outbound/outbound-session.js";

150150

import { buildOutboundSessionContext } from "../../infra/outbound/session-context.js";

151151

import { enqueueSystemEvent } from "../../infra/system-events.js";

152-

import { shouldEnqueueCronMainSummary } from "../heartbeat-policy.js";

153152

import {

154153

dispatchCronDelivery,

155154

getCompletedDirectCronDeliveriesCountForTests,

@@ -338,18 +337,6 @@ describe("dispatchCronDelivery — double-announce guard", () => {

338337

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

339338

expect(waitForDescendantSubagentSummary).toHaveBeenCalledTimes(1);

340339341-

// Verify timer guard agrees: shouldEnqueueCronMainSummary returns false

342-

expect(

343-

shouldEnqueueCronMainSummary({

344-

summaryText: "on it",

345-

deliveryRequested: true,

346-

delivered: state.delivered,

347-

deliveryAttempted: state.deliveryAttempted,

348-

suppressMainSummary: false,

349-

isCronSystemEvent: () => true,

350-

}),

351-

).toBe(false);

352-353340

// No announce should have been attempted (subagents still running)

354341

expect(deliverOutboundPayloads).not.toHaveBeenCalled();

355342

});

@@ -496,18 +483,6 @@ describe("dispatchCronDelivery — double-announce guard", () => {

496483

// deliveryAttempted must be true so timer does NOT fire enqueueSystemEvent

497484

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

498485499-

// Verify timer guard agrees

500-

expect(

501-

shouldEnqueueCronMainSummary({

502-

summaryText: "on it, pulling everything together",

503-

deliveryRequested: true,

504-

delivered: state.delivered,

505-

deliveryAttempted: state.deliveryAttempted,

506-

suppressMainSummary: false,

507-

isCronSystemEvent: () => true,

508-

}),

509-

).toBe(false);

510-511486

// No direct delivery should have been sent (stale interim suppressed)

512487

expect(deliverOutboundPayloads).not.toHaveBeenCalled();

513488

});

@@ -577,18 +552,6 @@ describe("dispatchCronDelivery — double-announce guard", () => {

577552

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

578553

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

579554

expect(deliverOutboundPayloads).toHaveBeenCalledTimes(1);

580-581-

// Timer should not fire enqueueSystemEvent (delivered=true)

582-

expect(

583-

shouldEnqueueCronMainSummary({

584-

summaryText: "Morning briefing complete.",

585-

deliveryRequested: true,

586-

delivered: state.delivered,

587-

deliveryAttempted: state.deliveryAttempted,

588-

suppressMainSummary: false,

589-

isCronSystemEvent: () => true,

590-

}),

591-

).toBe(false);

592555

});

593556594557

it("applies TTS directives before direct cron announce delivery and mirrors spoken text", async () => {

@@ -1045,16 +1008,6 @@ describe("dispatchCronDelivery — double-announce guard", () => {

10451008

deliveryAttempted: true,

10461009

});

10471010

expect(deliverOutboundPayloads).not.toHaveBeenCalled();

1048-

expect(

1049-

shouldEnqueueCronMainSummary({

1050-

summaryText: "Yesterday's morning briefing.",

1051-

deliveryRequested: true,

1052-

delivered: state.result?.delivered,

1053-

deliveryAttempted: state.result?.deliveryAttempted,

1054-

suppressMainSummary: false,

1055-

isCronSystemEvent: () => true,

1056-

}),

1057-

).toBe(false);

10581011

});

1059101210601013

it("still delivers when the run started on time but finished more than three hours later", async () => {

@@ -1483,18 +1436,6 @@ describe("dispatchCronDelivery — double-announce guard", () => {

14831436

// deliveryAttempted must be true so the heartbeat timer does not fire

14841437

// a fallback enqueueSystemEvent with the control-token text.

14851438

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

1486-1487-

// Verify timer guard agrees: shouldEnqueueCronMainSummary returns false

1488-

expect(

1489-

shouldEnqueueCronMainSummary({

1490-

summaryText: controlToken,

1491-

deliveryRequested: true,

1492-

delivered: state.result?.delivered,

1493-

deliveryAttempted: state.result?.deliveryAttempted,

1494-

suppressMainSummary: false,

1495-

isCronSystemEvent: () => true,

1496-

}),

1497-

).toBe(false);

14981439

},

14991440

);

15001441

@@ -1826,17 +1767,6 @@ describe("dispatchCronDelivery — double-announce guard", () => {

18261767

deliveryAttempted: true,

18271768

});

18281769

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

1829-1830-

expect(

1831-

shouldEnqueueCronMainSummary({

1832-

summaryText: " NO_REPLY ",

1833-

deliveryRequested: true,

1834-

delivered: state.result?.delivered,

1835-

deliveryAttempted: state.result?.deliveryAttempted,

1836-

suppressMainSummary: false,

1837-

isCronSystemEvent: () => true,

1838-

}),

1839-

).toBe(false);

18401770

});

1841177118421772

it("suppresses mixed-case NO_REPLY in text delivery", async () => {

@@ -1848,16 +1778,6 @@ describe("dispatchCronDelivery — double-announce guard", () => {

18481778

status: "ok",

18491779

delivered: false,

18501780

});

1851-

expect(

1852-

shouldEnqueueCronMainSummary({

1853-

summaryText: "No_Reply",

1854-

deliveryRequested: true,

1855-

delivered: state.result?.delivered,

1856-

deliveryAttempted: state.result?.deliveryAttempted,

1857-

suppressMainSummary: false,

1858-

isCronSystemEvent: () => true,

1859-

}),

1860-

).toBe(false);

18611781

});

1862178218631783

it("cleans up the direct cron session after a structured silent reply when deleteAfterRun is enabled", async () => {