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

推荐订阅源

GbyAI
GbyAI
Martin Fowler
Martin Fowler
云风的 BLOG
云风的 BLOG
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Blog of Author Tim Ferriss
大猫的无限游戏
大猫的无限游戏
A
About on SuperTechFans
小众软件
小众软件
博客园_首页
博客园 - 聂微东
罗磊的独立博客
Recent Announcements
Recent Announcements
U
Unit 42
N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
Stack Overflow Blog
Stack Overflow Blog
博客园 - Franky
D
DataBreaches.Net
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
test: tighten qqbot reminder assertions · openclaw/opencl...
shakkernerd · 2026-05-11 · via Recent Commits to openclaw:main

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

88

executeRemind,

99

executeScheduledRemind,

1010

prepareRemindCronAction,

11+

type RemindCronAction,

1112

} from "./remind-logic.js";

12131314

describe("engine/tools/remind-logic", () => {

@@ -208,7 +209,8 @@ describe("engine/tools/remind-logic", () => {

208209209210

describe("executeScheduledRemind", () => {

210211

it("runs cron.add directly for relative reminders", async () => {

211-

const calls: unknown[] = [];

212+

const calls: RemindCronAction[] = [];

213+

const before = Date.now();

212214

const result = await executeScheduledRemind(

213215

{ action: "add", content: "test reminder", to: "qqbot:c2c:123", time: "5m" },

214216

{},

@@ -219,18 +221,30 @@ describe("engine/tools/remind-logic", () => {

219221

);

220222221223

expect(calls).toHaveLength(1);

222-

expect(calls[0]).toMatchObject({

223-

action: "add",

224-

job: {

225-

sessionTarget: "isolated",

226-

payload: { kind: "agentTurn" },

227-

delivery: {

228-

mode: "announce",

229-

channel: "qqbot",

230-

to: "qqbot:c2c:123",

231-

accountId: "default",

232-

},

233-

},

224+

const call = calls[0];

225+

expect(call?.action).toBe("add");

226+

if (call?.action !== "add") {

227+

throw new Error("expected add cron action");

228+

}

229+

expect(call.job.name).toBe("Reminder: test reminder");

230+

expect(call.job.schedule.kind).toBe("at");

231+

if (call.job.schedule.kind !== "at") {

232+

throw new Error("expected at schedule");

233+

}

234+

expect(call.job.schedule.atMs).toBeGreaterThanOrEqual(before + 5 * 60_000);

235+

expect(call.job.schedule.atMs).toBeLessThanOrEqual(Date.now() + 5 * 60_000 + 1_000);

236+

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

237+

expect(call.job.wakeMode).toBe("now");

238+

expect(call.job.deleteAfterRun).toBe(true);

239+

expect(call.job.payload).toEqual({

240+

kind: "agentTurn",

241+

message: buildReminderPrompt("test reminder"),

242+

});

243+

expect(call.job.delivery).toEqual({

244+

mode: "announce",

245+

channel: "qqbot",

246+

to: "qqbot:c2c:123",

247+

accountId: "default",

234248

});

235249

expect(result.details).toEqual({

236250

ok: true,