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

推荐订阅源

F
Full Disclosure
Recorded Future
Recorded Future
T
Tenable Blog
S
Securelist
C
CERT Recently Published Vulnerability Notes
T
Threatpost
S
Schneier on Security
A
Arctic Wolf
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
Know Your Adversary
Know Your Adversary
P
Privacy International News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Register - Security
The Register - Security
Cisco Talos Blog
Cisco Talos Blog
AWS News Blog
AWS News Blog
K
Kaspersky official blog
T
True Tiger Recordings
T
Threat Research - Cisco Blogs
V
Vulnerabilities – Threatpost
P
Palo Alto Networks Blog
T
The Exploit Database - CXSecurity.com
小众软件
小众软件
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
Cyberwarzone
Cyberwarzone
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tor Project blog
Spread Privacy
Spread Privacy
Malwarebytes
Malwarebytes
P
Proofpoint News Feed
F
Fox-IT International blog
F
Fortinet All Blogs
P
Privacy & Cybersecurity Law Blog
G
GRAHAM CLULEY
量子位
Latest news
Latest news
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
Project Zero
Project Zero
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
I
Intezer
博客园_首页
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Darknet – Hacking Tools, Hacker News & Cyber Security

Recent Commits to openclaw:main

fix(filefetch): wrap fetched text as external content (#87062) · openclaw/openclaw@42b8898 fix(ci): satisfy script oxlint sort rule · openclaw/openclaw@ffe1213 ci: tolerate gateway status help probe hangs fix(memory-core): close providers created during shutdown · openclaw/openclaw@e982302 fix(gateway): bound e2e HTTP helper responses · openclaw/openclaw@6509da7 fix(agents): honor per-agent thinking defaults for ingress runs (#86689) · openclaw/openclaw@bba4298 perf: trim gateway runtime hotspots · openclaw/openclaw@2035f38 fix(sessions): avoid parsing object cache writes · openclaw/openclaw@f6599ed test(cli): allow mac startup memory overhead · openclaw/openclaw@978cb6a fix(crabbox): show broker url in auth guard fix(crabbox): require broker auth for aws proof · openclaw/openclaw@7c432d2 fix(docker): bound kitchen sink plugin commands · openclaw/openclaw@d353dc1 fix(cli): bound startup memory probes · openclaw/openclaw@2b5fba1 test: skip claude resume live proof without cli · openclaw/openclaw@049d6c9 fix(agents): force SIGKILL for stuck MCP stdio children (#86739) · openclaw/openclaw@71d24f9 fix(codex): avoid false queued terminal idle timeout (#87096) · openclaw/openclaw@1dbd9a3 fix(gateway): fail hot cpu scenario checks · openclaw/openclaw@bfddd45 perf: reduce gateway cpu churn · openclaw/openclaw@a43da0c fix(gateway): harden runtime smoke checks fix(docker): bound plugin sweep reads · openclaw/openclaw@86ff2cf test: make docker package timeout proof robust · openclaw/openclaw@94cd364 fix(anthropic): pass system prompt on resumed claude-cli sessions · openclaw/openclaw@84e6282 fix(skills): sync plugin skills to sandbox workspaces · openclaw/openclaw@d8f6d65 docs: show PR LOC in maintainer reviews · openclaw/openclaw@8b8e088 fix(codex): raise dynamic tool timeout · openclaw/openclaw@0f18d52 fix(cli): handle Bun launcher module misses · openclaw/openclaw@a1934e9 fix(docker): bound plugin sweep commands · openclaw/openclaw@e46b92c docs: improve PR blame provenance · openclaw/openclaw@ebfcddb fix: scrub serialized tool-call text from replies (#86924) · openclaw/openclaw@ee655f4 test: fix CI type checks · openclaw/openclaw@eac918d fix(e2e): resolve mac update smoke commands from PATH · openclaw/openclaw@b654117 test(docs): avoid URL default stringification · openclaw/openclaw@61fa2b2 test: speed up plugin runtime tests · openclaw/openclaw@9f7584c fix(docs): use Cloudflare docs search API · openclaw/openclaw@69d84d7 test: speed up run-node infra tests · openclaw/openclaw@7e913c0 fix(docker): bound e2e image builds · openclaw/openclaw@6ef0cbb fix(agents): unwrap standalone message tool JSON (#86626) · openclaw/openclaw@030861e fix(slack): fast-path wildcard open DM policy · openclaw/openclaw@9cd1d27 ci: retry corepack pnpm activation · openclaw/openclaw@d122839 test: bound gateway live model discovery · openclaw/openclaw@dc1e6fb test: speed up plugin install suites · openclaw/openclaw@75fc0bc fix(irc): use channel routes for group inbound targets · openclaw/openclaw@bf8be79 Preserve xAI usage limit errors in local TUI (#86614) · openclaw/openclaw@532494b fix: filter claude autoreview streaming · openclaw/openclaw@fa384d4 fix(cli-runner): scale Claude CLI reseed history automatically · openclaw/openclaw@474b1e0 test: speed up infra test hotspots · openclaw/openclaw@8592352 fix(e2e): keep mac smoke commands bounded without timeout · openclaw/openclaw@3e70144 fix(live): classify Z.ai plan denials as billing drift · openclaw/openclaw@693f06d fix(config): render transform-backed config schema inputs (#67328) · openclaw/openclaw@678a0ee perf: speed up test hotspots · openclaw/openclaw@980d73d feat: stream autoreview progress · openclaw/openclaw@322ceb3 test: improve full-suite failure summaries · openclaw/openclaw@8f1fb67 fix(e2e): require bounded helper timeouts · openclaw/openclaw@0028c2f fix(ui): eliminate double scrollbar on Logs view · openclaw/openclaw@068d88c test: speed up hot test fixtures · openclaw/openclaw@0f608bc fix(auto-reply): suppress repeated silent tokens (#86848) · openclaw/openclaw@8ec2b2d fix(commands): preserve async skill commands · openclaw/openclaw@1313e15 fix(docker): bound telegram npm installs · openclaw/openclaw@130464e fix(mac): use corepack pnpm for app packaging · openclaw/openclaw@728b61a fix: mark ios watch app as watchkit app · openclaw/openclaw@1600bcd docs: explain bundled plugin npm override · openclaw/openclaw@40fa750 fix: keep bundled OpenClaw plugins image-owned · openclaw/openclaw@771675e test: fix bundled install mock typing · openclaw/openclaw@669bfdd fix: preserve whatsapp inbound batch order · openclaw/openclaw@84a33c7 perf: cache npm globalconfig lookups · openclaw/openclaw@3f524a6 fix(daemon): ignore recursive Windows gateway wrapper · openclaw/openclaw@126a336 fix(docker): bound live setup commands · openclaw/openclaw@eb15c44 fix: restore ios build stability · openclaw/openclaw@1daef79 feat(plugin-sdk): add reaction approval helpers (#86735) · openclaw/openclaw@7d6b7f4 test(auto-reply): type manifest catalog harness mock · openclaw/openclaw@4f83cd6 fix(docker): bound live docker runs · openclaw/openclaw@96307ca test(auto-reply): mock manifest model catalog in trigger harness · openclaw/openclaw@989d449 fix(crabbox): scope env-wrapped macOS bootstrap · openclaw/openclaw@2f7bfdb fix(gateway): reject RPCs from invalidated device-token clients durin… · openclaw/openclaw@1e1cf14 fix(channel): handle plugin channel markdown fallback · openclaw/openclaw@6158742 fix(docker): require bounded e2e docker commands · openclaw/openclaw@3736d7b fix(codex): share native hook relay registry (#73950) · openclaw/openclaw@6729dea fix(release): stabilize plugin prerelease tests · openclaw/openclaw@5a684c4 fix(diagnostics): flush OTel trace batches · openclaw/openclaw@c4b9f54 fix(memory): reject invalid CLI numeric options · openclaw/openclaw@d569e41 fix(codex): bound app-server timeout fallout · openclaw/openclaw@5a7d5c6 fix(agents): keep model browse normalization bounded · openclaw/openclaw@9fc71e9 fix: stabilize media-related tests · openclaw/openclaw@a818556 fix(ci): preserve docker pull retry failures · openclaw/openclaw@be2213e fix(build): stabilize shrinkwrap generation · openclaw/openclaw@538b537 fix(ui): ignore stale running session rows · openclaw/openclaw@1705189 ci: support windows node download fallback · openclaw/openclaw@bb48fcf test(agents): pin native anthropic replay policy · openclaw/openclaw@acd3ce0 fix(status): surface systemd gateway hygiene (#86976) · openclaw/openclaw@0a085bf fix(ui): show failed tool results as errors (#85786) ci: allow Windows Node 22 patch range · openclaw/openclaw@ce4db4f ci: enforce Node 22 floor in setup helper · openclaw/openclaw@1d972af Fix status JSON plugin scan (#87001) · openclaw/openclaw@f3e6158 fix(telegram): preserve command slots for aliases (#85270) · openclaw/openclaw@77505da fix(agents): handle deferred maintenance drain · openclaw/openclaw@94fb547 test: keep legacy tool-result error proof ci: fix post-merge Rastermill checks · openclaw/openclaw@b546998 fix(agents): mark repaired legacy tool results errored · openclaw/openclaw@8523d32 docs(changelog): note rastermill exif fix docs(changelog): regroup 2026.5.26 release notes · openclaw/openclaw@a6973ab
fix(cron): preview no-deliver message targets · openclaw/openclaw@c9ca7fc
Alix-007 · 2026-05-27 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1,5 +1,5 @@

11

import { describe, expect, it } from "vitest";

2-

import { resolveCronDeliveryPlan } from "./delivery-plan.js";

2+

import { hasExplicitCronDeliveryTarget, resolveCronDeliveryPlan } from "./delivery-plan.js";

33

import { makeCronJob } from "./delivery.test-helpers.js";

44
55

describe("resolveCronDeliveryPlan", () => {

@@ -28,4 +28,18 @@ describe("resolveCronDeliveryPlan", () => {

2828

requested: false,

2929

});

3030

});

31+
32+

it("treats numeric zero thread id as an explicit target", () => {

33+

const plan = resolveCronDeliveryPlan(

34+

makeCronJob({

35+

delivery: {

36+

mode: "none",

37+

threadId: 0,

38+

},

39+

}),

40+

);

41+
42+

expect(plan.threadId).toBe(0);

43+

expect(hasExplicitCronDeliveryTarget(plan)).toBe(true);

44+

});

3145

});

Original file line numberDiff line numberDiff line change

@@ -19,6 +19,12 @@ export type CronDeliveryPlan = {

1919

requested: boolean;

2020

};

2121
22+

export function hasExplicitCronDeliveryTarget(plan: CronDeliveryPlan): boolean {

23+

return Boolean(

24+

(plan.channel && plan.channel !== "last") || plan.to || plan.threadId != null || plan.accountId,

25+

);

26+

}

27+
2228

function normalizeChannel(value: unknown): CronMessageChannel | undefined {

2329

const trimmed = normalizeOptionalLowercaseString(value);

2430

if (!trimmed) {

Original file line numberDiff line numberDiff line change

@@ -66,4 +66,78 @@ describe("resolveCronDeliveryPreview", () => {

6666

expect(preview).toEqual({ label: "not requested", detail: "not requested" });

6767

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

6868

});

69+
70+

it("previews explicit message-tool targets on no-delivery jobs", async () => {

71+

const job = makeCronJob({

72+

agentId: "avery",

73+

delivery: {

74+

mode: "none",

75+

channel: "topicchat",

76+

to: "room#42",

77+

threadId: 42,

78+

accountId: "ops",

79+

},

80+

sessionTarget: "isolated",

81+

});

82+
83+

const preview = await resolveCronDeliveryPreview({

84+

cfg: {} as never,

85+

job,

86+

});

87+
88+

expect(mocks.resolveDeliveryTarget).toHaveBeenCalledWith(

89+

{},

90+

"avery",

91+

{

92+

channel: "topicchat",

93+

to: "room#42",

94+

threadId: 42,

95+

accountId: "ops",

96+

sessionKey: undefined,

97+

},

98+

{ dryRun: true },

99+

);

100+

expect(preview).toEqual({

101+

label: "none -> telegram:direct-123",

102+

detail: "explicit",

103+

});

104+

});

105+
106+

it("does not describe unresolved no-delivery message-tool targets as fail-closed", async () => {

107+

mocks.resolveDeliveryTarget.mockResolvedValueOnce({

108+

ok: false,

109+

mode: "implicit",

110+

error: new Error("no route"),

111+

});

112+

const job = makeCronJob({

113+

agentId: "avery",

114+

delivery: {

115+

mode: "none",

116+

threadId: 0,

117+

},

118+

sessionTarget: "isolated",

119+

});

120+
121+

const preview = await resolveCronDeliveryPreview({

122+

cfg: {} as never,

123+

job,

124+

});

125+
126+

expect(mocks.resolveDeliveryTarget).toHaveBeenCalledWith(

127+

{},

128+

"avery",

129+

{

130+

channel: "last",

131+

to: undefined,

132+

threadId: 0,

133+

accountId: undefined,

134+

sessionKey: undefined,

135+

},

136+

{ dryRun: true },

137+

);

138+

expect(preview).toEqual({

139+

label: "none -> last",

140+

detail: "message tool target unresolved: no route",

141+

});

142+

});

69143

});

Original file line numberDiff line numberDiff line change

@@ -1,6 +1,6 @@

11

import { resolveDefaultAgentId } from "../agents/agent-scope-config.js";

22

import type { OpenClawConfig } from "../config/types.openclaw.js";

3-

import { resolveCronDeliveryPlan } from "./delivery-plan.js";

3+

import { hasExplicitCronDeliveryTarget, resolveCronDeliveryPlan } from "./delivery-plan.js";

44

import { resolveDeliveryTarget } from "./isolated-agent/delivery-target.js";

55

import { resolveCronDeliverySessionKey } from "./session-target.js";

66

import type { CronDeliveryPreview, CronJob } from "./types.js";

@@ -40,7 +40,7 @@ export async function resolveCronDeliveryPreview(params: {

4040

job: CronJob;

4141

}): Promise<CronDeliveryPreview> {

4242

const plan = resolveCronDeliveryPlan(params.job);

43-

if (plan.mode === "none") {

43+

if (plan.mode === "none" && !hasExplicitCronDeliveryTarget(plan)) {

4444

return { label: "not requested", detail: "not requested" };

4545

}

4646

if (plan.mode === "webhook") {

@@ -67,12 +67,15 @@ export async function resolveCronDeliveryPreview(params: {

6767

if (!resolved.ok) {

6868

return {

6969

label: `${plan.mode} -> ${formatTarget(requestedChannel, plan.to ?? null)}`,

70-

detail: formatDeliveryDetail({

71-

requestedChannel,

72-

resolved: false,

73-

sessionKey: deliverySessionKey,

74-

error: resolved.error.message,

75-

}),

70+

detail:

71+

plan.mode === "none"

72+

? `message tool target unresolved: ${resolved.error.message}`

73+

: formatDeliveryDetail({

74+

requestedChannel,

75+

resolved: false,

76+

sessionKey: deliverySessionKey,

77+

error: resolved.error.message,

78+

}),

7679

};

7780

}

7881

return {

Original file line numberDiff line numberDiff line change

@@ -232,7 +232,8 @@ vi.mock("../../config/sessions/store.runtime.js", () => ({

232232

updateSessionStore: updateSessionStoreMock,

233233

}));

234234
235-

vi.mock("../delivery-plan.js", () => ({

235+

vi.mock("../delivery-plan.js", async () => ({

236+

...(await vi.importActual<typeof import("../delivery-plan.js")>("../delivery-plan.js")),

236237

resolveCronDeliveryPlan: resolveCronDeliveryPlanMock,

237238

}));

238239
Original file line numberDiff line numberDiff line change

@@ -27,7 +27,11 @@ import { isCommandLaneTaskTimeoutError } from "../../process/command-queue.js";

2727

import { CommandLane } from "../../process/lanes.js";

2828

import { createLazyImportLoader } from "../../shared/lazy-promise.js";

2929

import { normalizeOptionalString } from "../../shared/string-coerce.js";

30-

import { resolveCronDeliveryPlan, type CronDeliveryPlan } from "../delivery-plan.js";

30+

import {

31+

hasExplicitCronDeliveryTarget,

32+

resolveCronDeliveryPlan,

33+

type CronDeliveryPlan,

34+

} from "../delivery-plan.js";

3135

import {

3236

createCronRunDiagnosticsFromAgentResult,

3337

createCronRunDiagnosticsFromError,

@@ -344,12 +348,6 @@ function canPromptForMessageTool(params: {

344348

);

345349

}

346350
347-

function hasExplicitCronDeliveryTarget(plan: CronDeliveryPlan): boolean {

348-

return Boolean(

349-

(plan.channel && plan.channel !== "last") || plan.to || plan.threadId || plan.accountId,

350-

);

351-

}

352-
353351

async function resolveCronDeliveryContext(params: {

354352

cfg: OpenClawConfig;

355353

job: CronJob;