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

推荐订阅源

H
Help Net Security
宝玉的分享
宝玉的分享
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
V
Visual Studio Blog
Last Week in AI
Last Week in AI
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
A
About on SuperTechFans
MyScale Blog
MyScale Blog
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
D
Docker
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Announcements
Recent Announcements
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
P
Proofpoint News Feed
L
LangChain Blog
Blog — PlanetScale
Blog — PlanetScale
The GitHub Blog
The GitHub Blog
博客园 - 【当耐特】
Martin Fowler
Martin Fowler

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: tighten doctor cron assertions · openclaw/openclaw@...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -91,6 +91,13 @@ function requirePersistedJob(jobs: Array<Record<string, unknown>>, index: number

9191

return job;

9292

}

939394+

function requireRecord(value: unknown, label: string): Record<string, unknown> {

95+

if (!value || typeof value !== "object" || Array.isArray(value)) {

96+

throw new Error(`expected ${label}`);

97+

}

98+

return value as Record<string, unknown>;

99+

}

100+94101

describe("maybeRepairLegacyCronStore", () => {

95102

it("repairs legacy cron store fields and migrates notify fallback to webhook delivery", async () => {

96103

const storePath = await makeTempStorePath();

@@ -110,19 +117,16 @@ describe("maybeRepairLegacyCronStore", () => {

110117

expect(job.jobId).toBeUndefined();

111118

expect(job.id).toBe("legacy-job");

112119

expect(job.notify).toBeUndefined();

113-

expect(job.schedule).toMatchObject({

114-

kind: "cron",

115-

expr: "0 7 * * *",

116-

tz: "UTC",

117-

});

118-

expect(job.delivery).toMatchObject({

119-

mode: "webhook",

120-

to: "https://example.invalid/cron-finished",

121-

});

122-

expect(job.payload).toMatchObject({

123-

kind: "systemEvent",

124-

text: "Morning brief",

125-

});

120+

const schedule = requireRecord(job.schedule, "cron schedule");

121+

expect(schedule.kind).toBe("cron");

122+

expect(schedule.expr).toBe("0 7 * * *");

123+

expect(schedule.tz).toBe("UTC");

124+

const delivery = requireRecord(job.delivery, "cron delivery");

125+

expect(delivery.mode).toBe("webhook");

126+

expect(delivery.to).toBe("https://example.invalid/cron-finished");

127+

const payload = requireRecord(job.payload, "cron payload");

128+

expect(payload.kind).toBe("systemEvent");

129+

expect(payload.text).toBe("Morning brief");

126130127131

expect(noteSpy).toHaveBeenCalledWith(

128132

expect.stringContaining("Legacy cron job storage detected"),

@@ -296,10 +300,9 @@ describe("maybeRepairLegacyCronStore", () => {

296300

const jobs = await readPersistedJobs(storePath);

297301

const job = requirePersistedJob(jobs, 0);

298302

expect(job.notify).toBeUndefined();

299-

expect(job.delivery).toMatchObject({

300-

mode: "webhook",

301-

to: "https://example.invalid/cron-finished",

302-

});

303+

const delivery = requireRecord(job.delivery, "cron delivery");

304+

expect(delivery.mode).toBe("webhook");

305+

expect(delivery.to).toBe("https://example.invalid/cron-finished");

303306

});

304307305308

it("repairs legacy root delivery threadId hints into delivery", async () => {

@@ -336,12 +339,11 @@ describe("maybeRepairLegacyCronStore", () => {

336339

expect(job.channel).toBeUndefined();

337340

expect(job.to).toBeUndefined();

338341

expect(job.threadId).toBeUndefined();

339-

expect(job.delivery).toMatchObject({

340-

mode: "announce",

341-

channel: "telegram",

342-

to: "-1001234567890",

343-

threadId: "99",

344-

});

342+

const delivery = requireRecord(job.delivery, "cron delivery");

343+

expect(delivery.mode).toBe("announce");

344+

expect(delivery.channel).toBe("telegram");

345+

expect(delivery.to).toBe("-1001234567890");

346+

expect(delivery.threadId).toBe("99");

345347

});

346348347349

it("rewrites stale managed dreaming jobs to the isolated agentTurn shape", async () => {

@@ -377,16 +379,14 @@ describe("maybeRepairLegacyCronStore", () => {

377379

const persisted = JSON.parse(await fs.readFile(storePath, "utf-8")) as {

378380

jobs: Array<Record<string, unknown>>;

379381

};

380-

const [job] = persisted.jobs;

381-

expect(job).toMatchObject({

382-

sessionTarget: "isolated",

383-

payload: {

384-

kind: "agentTurn",

385-

message: "__openclaw_memory_core_short_term_promotion_dream__",

386-

lightContext: true,

387-

},

388-

delivery: { mode: "none" },

389-

});

382+

const job = requirePersistedJob(persisted.jobs, 0);

383+

expect(job.sessionTarget).toBe("isolated");

384+

const payload = requireRecord(job.payload, "cron payload");

385+

expect(payload.kind).toBe("agentTurn");

386+

expect(payload.message).toBe("__openclaw_memory_core_short_term_promotion_dream__");

387+

expect(payload.lightContext).toBe(true);

388+

const delivery = requireRecord(job.delivery, "cron delivery");

389+

expect(delivery.mode).toBe("none");

390390

expect(noteSpy).toHaveBeenCalledWith(expect.stringContaining("managed dreaming job"), "Cron");

391391

expect(noteSpy).toHaveBeenCalledWith(

392392

expect.stringContaining("Rewrote 1 managed dreaming job"),