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

推荐订阅源

人人都是产品经理
人人都是产品经理
博客园_首页
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
小众软件
小众软件
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell
IT之家
IT之家
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Recent Announcements
Recent Announcements
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub 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
fix(cron): separate failure notification delivery · openc...
steipete · 2026-05-16 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -26,6 +26,7 @@ Docs: https://docs.openclaw.ai

2626

- Plugin releases: require external package compatibility metadata in the npm plugin publish plan, matching the ClawHub package contract before packages ship.

2727

- Agents/OpenAI-compatible: honor per-model `max_completion_tokens`/`max_tokens` params in embedded OpenAI-completions runs so high-token Kimi-style routes keep their configured completion cap. Fixes #82230. Thanks @albert-zen.

2828

- Agents/local: install a local gateway request scope around trusted `openclaw agent --local` runs, so subagent completion announces can use in-process gateway dispatch without crashing. Fixes #82140. Thanks @Kushmaro.

29+

- Cron: keep failed isolated-agent runs from marking successful result delivery when only the failure notification was delivered. Fixes #72985. Thanks @Allenbluff.

2930

- Discord: validate message-read results before normalizing channel history and report unexpected payloads with a Discord boundary error instead of `map is not a function`. Fixes #82252. Thanks @jessewunderlich.

3031

- Agents/runtime: apply `agents.defaults.models["provider/*"].agentRuntime` as provider-wide model runtime policy while preserving exact model runtime precedence. Fixes #82243. Thanks @rendrag-git.

3132

- Agents/auto-reply: restrict `NO_REPLY` prompt guidance to automatic group/channel replies, remove legacy silent-reply rewrites, and suppress accidental direct-chat silent tokens instead of delivering fallback text. Fixes #82254. Thanks @absol89.

Original file line numberDiff line numberDiff line change

@@ -5293,6 +5293,7 @@ public struct CronRunLogEntry: Codable, Sendable {

52935293

public let delivered: Bool?

52945294

public let deliverystatus: AnyCodable?

52955295

public let deliveryerror: String?

5296+

public let failurenotificationdelivery: [String: AnyCodable]?

52965297

public let sessionid: String?

52975298

public let sessionkey: String?

52985299

public let runid: String?

@@ -5315,6 +5316,7 @@ public struct CronRunLogEntry: Codable, Sendable {

53155316

delivered: Bool?,

53165317

deliverystatus: AnyCodable?,

53175318

deliveryerror: String?,

5319+

failurenotificationdelivery: [String: AnyCodable]? = nil,

53185320

sessionid: String?,

53195321

sessionkey: String?,

53205322

runid: String?,

@@ -5336,6 +5338,7 @@ public struct CronRunLogEntry: Codable, Sendable {

53365338

self.delivered = delivered

53375339

self.deliverystatus = deliverystatus

53385340

self.deliveryerror = deliveryerror

5341+

self.failurenotificationdelivery = failurenotificationdelivery

53395342

self.sessionid = sessionid

53405343

self.sessionkey = sessionkey

53415344

self.runid = runid

@@ -5359,6 +5362,7 @@ public struct CronRunLogEntry: Codable, Sendable {

53595362

case delivered

53605363

case deliverystatus = "deliveryStatus"

53615364

case deliveryerror = "deliveryError"

5365+

case failurenotificationdelivery = "failureNotificationDelivery"

53625366

case sessionid = "sessionId"

53635367

case sessionkey = "sessionKey"

53645368

case runid = "runId"

Original file line numberDiff line numberDiff line change

@@ -42,6 +42,7 @@ const STRICT_LITERAL_STRUCTS = new Set([

4242
4343

const DEFAULTED_OPTIONAL_INIT_PARAMS: Record<string, Set<string>> = {

4444

MessageActionParams: new Set(["inboundTurnKind"]),

45+

CronRunLogEntry: new Set(["failureNotificationDelivery"]),

4546

};

4647
4748

const header = `// Generated by scripts/protocol-gen-swift.ts — do not edit by hand\n// swiftlint:disable file_length\nimport Foundation\n\npublic let GATEWAY_PROTOCOL_VERSION = ${PROTOCOL_VERSION}\npublic let GATEWAY_MIN_PROTOCOL_VERSION = ${MIN_CLIENT_PROTOCOL_VERSION}\n\nprivate struct GatewayAnyCodingKey: CodingKey, Hashable {\n let stringValue: String\n let intValue: Int?\n\n init?(stringValue: String) {\n self.stringValue = stringValue\n self.intValue = nil\n }\n\n init?(intValue: Int) {\n self.stringValue = String(intValue)\n self.intValue = intValue\n }\n}\n\npublic enum ErrorCode: String, Codable, Sendable {\n${Object.values(

Original file line numberDiff line numberDiff line change

@@ -15,4 +15,11 @@ describe("cron protocol schema", () => {

1515

}

1616

expect(lastStatus.deprecated).toBe(true);

1717

});

18+
19+

it("exposes failure-notification delivery state", () => {

20+

const properties = (CronJobStateSchema as SchemaLike).properties ?? {};

21+

expect(properties.lastFailureNotificationDelivered).toBeDefined();

22+

expect(properties.lastFailureNotificationDeliveryStatus).toBeDefined();

23+

expect(properties.lastFailureNotificationDeliveryError).toBeDefined();

24+

});

1825

});

Original file line numberDiff line numberDiff line change

@@ -242,6 +242,10 @@ describe("cron run log", () => {

242242

delivered: true,

243243

deliveryStatus: "not-delivered",

244244

deliveryError: "announce failed",

245+

failureNotificationDelivery: {

246+

delivered: true,

247+

status: "delivered",

248+

},

245249

delivery: {

246250

intended: { channel: "last", to: null, source: "last" },

247251

resolved: { ok: true, channel: "telegram", to: "-100", source: "last" },

@@ -260,6 +264,10 @@ describe("cron run log", () => {

260264

expect(entries[0]?.delivered).toBe(true);

261265

expect(entries[0]?.deliveryStatus).toBe("not-delivered");

262266

expect(entries[0]?.deliveryError).toBe("announce failed");

267+

expect(entries[0]?.failureNotificationDelivery).toEqual({

268+

delivered: true,

269+

status: "delivered",

270+

});

263271

expect(entries[0]?.delivery).toEqual({

264272

intended: { channel: "last", to: null, source: "last" },

265273

resolved: { ok: true, channel: "telegram", to: "-100", source: "last" },

Original file line numberDiff line numberDiff line change

@@ -14,6 +14,7 @@ import { normalizeCronRunDiagnostics } from "./run-diagnostics.js";

1414

import type {

1515

CronDeliveryStatus,

1616

CronDeliveryTrace,

17+

CronFailureNotificationDelivery,

1718

CronRunDiagnostics,

1819

CronRunStatus,

1920

CronRunTelemetry,

@@ -30,6 +31,7 @@ export type CronRunLogEntry = {

3031

delivered?: boolean;

3132

deliveryStatus?: CronDeliveryStatus;

3233

deliveryError?: string;

34+

failureNotificationDelivery?: CronFailureNotificationDelivery;

3335

delivery?: CronDeliveryTrace;

3436

sessionId?: string;

3537

sessionKey?: string;

@@ -350,6 +352,29 @@ function parseAllRunLogEntries(raw: string, opts?: { jobId?: string }): CronRunL

350352

if (typeof obj.deliveryError === "string") {

351353

entry.deliveryError = obj.deliveryError;

352354

}

355+

if (obj.failureNotificationDelivery && typeof obj.failureNotificationDelivery === "object") {

356+

const failureNotificationDelivery = obj.failureNotificationDelivery as {

357+

delivered?: unknown;

358+

status?: unknown;

359+

error?: unknown;

360+

};

361+

if (

362+

failureNotificationDelivery.status === "delivered" ||

363+

failureNotificationDelivery.status === "not-delivered" ||

364+

failureNotificationDelivery.status === "unknown" ||

365+

failureNotificationDelivery.status === "not-requested"

366+

) {

367+

entry.failureNotificationDelivery = {

368+

status: failureNotificationDelivery.status,

369+

...(typeof failureNotificationDelivery.delivered === "boolean"

370+

? { delivered: failureNotificationDelivery.delivered }

371+

: {}),

372+

...(typeof failureNotificationDelivery.error === "string"

373+

? { error: failureNotificationDelivery.error }

374+

: {}),

375+

};

376+

}

377+

}

353378

if (obj.delivery && typeof obj.delivery === "object") {

354379

entry.delivery = obj.delivery;

355380

}