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

推荐订阅源

大猫的无限游戏
大猫的无限游戏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
酷 壳 – CoolShell
酷 壳 – CoolShell
宝玉的分享
宝玉的分享
Martin Fowler
Martin Fowler
美团技术团队
量子位
M
MIT News - Artificial intelligence
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
小众软件
小众软件
博客园 - 司徒正美
罗磊的独立博客
云风的 BLOG
云风的 BLOG
B
Blog RSS Feed
博客园 - 聂微东

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
Refactor cron SQLite runtime paths (#88582) · openclaw/op...
steipete · 2026-05-31 · via Recent Commits to openclaw:main

@@ -480,7 +480,7 @@ describe("maybeRepairLegacyCronStore", () => {

480480

expectNoteContaining("missing a canonical string `id`", "Cron");

481481

});

482482483-

it("warns instead of replacing announce delivery for notify fallback jobs", async () => {

483+

it("migrates notify fallback alongside announce delivery without replacing it", async () => {

484484

const storePath = await makeTempStorePath();

485485

await fs.mkdir(path.dirname(storePath), { recursive: true });

486486

await fs.writeFile(

@@ -499,7 +499,7 @@ describe("maybeRepairLegacyCronStore", () => {

499499

sessionTarget: "isolated",

500500

wakeMode: "now",

501501

payload: { kind: "agentTurn", message: "Status" },

502-

delivery: { mode: "announce", channel: "telegram", to: "123" },

502+

delivery: { to: "telegram:123" },

503503

state: {},

504504

},

505505

],

@@ -523,9 +523,17 @@ describe("maybeRepairLegacyCronStore", () => {

523523524524

const jobs = await readPersistedJobs(storePath);

525525

const job = requirePersistedJob(jobs, 0);

526-

expect(job.notify).toBe(true);

527-

expectNoteContaining(

528-

'uses legacy notify fallback alongside delivery mode "announce"',

526+

expect(job.notify).toBeUndefined();

527+

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

528+

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

529+

expect(delivery.channel).toBeUndefined();

530+

expect(delivery.to).toBe("telegram:123");

531+

expect(delivery.completionDestination).toEqual({

532+

mode: "webhook",

533+

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

534+

});

535+

expectNoNoteContaining(

536+

"uses legacy notify fallback alongside delivery mode",

529537

"Doctor warnings",

530538

);

531539

});

@@ -607,6 +615,87 @@ describe("maybeRepairLegacyCronStore", () => {

607615

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

608616

});

609617618+

it("migrates invalid legacy notify webhook delivery jobs to cron.webhook", async () => {

619+

const storePath = await makeTempStorePath();

620+

await fs.mkdir(path.dirname(storePath), { recursive: true });

621+

await fs.writeFile(

622+

storePath,

623+

JSON.stringify(

624+

{

625+

version: 1,

626+

jobs: [

627+

{

628+

id: "notify-invalid-webhook",

629+

name: "Notify invalid webhook",

630+

notify: true,

631+

createdAtMs: Date.parse("2026-02-01T00:00:00.000Z"),

632+

updatedAtMs: Date.parse("2026-02-02T00:00:00.000Z"),

633+

schedule: { kind: "every", everyMs: 60_000 },

634+

payload: {

635+

kind: "systemEvent",

636+

text: "Status",

637+

},

638+

delivery: { mode: "webhook", to: "ftp://example.invalid/cron" },

639+

state: {},

640+

},

641+

],

642+

},

643+

null,

644+

2,

645+

),

646+

"utf-8",

647+

);

648+649+

await maybeRepairLegacyCronStore({

650+

cfg: {

651+

cron: {

652+

store: storePath,

653+

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

654+

},

655+

},

656+

options: {},

657+

prompter: makePrompter(true),

658+

});

659+660+

const jobs = await readPersistedJobs(storePath);

661+

const job = requirePersistedJob(jobs, 0);

662+

expect(job.notify).toBeUndefined();

663+

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

664+

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

665+

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

666+

});

667+668+

it("keeps notify fallback when cron.webhook is invalid", async () => {

669+

const storePath = await makeTempStorePath();

670+

await writeCronStore(storePath, [

671+

createLegacyCronJob({

672+

id: "notify-invalid-config",

673+

jobId: undefined,

674+

delivery: undefined,

675+

}),

676+

]);

677+678+

await maybeRepairLegacyCronStore({

679+

cfg: {

680+

cron: {

681+

store: storePath,

682+

webhook: "ftp://example.invalid/cron-finished",

683+

},

684+

},

685+

options: {},

686+

prompter: makePrompter(true),

687+

});

688+689+

const jobs = await readPersistedJobs(storePath);

690+

const job = requirePersistedJob(jobs, 0);

691+

expect(job.notify).toBe(true);

692+

expect(job.delivery).toBeUndefined();

693+

expectNoteContaining(

694+

"cron.webhook is not a valid HTTP(S) URL so doctor cannot migrate it automatically",

695+

"Doctor warnings",

696+

);

697+

});

698+610699

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

611700

const storePath = await makeTempStorePath();

612701

await writeCronStore(storePath, [