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

推荐订阅源

G
Google Developers Blog
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
The GitHub Blog
The GitHub Blog
I
InfoQ
A
About on SuperTechFans
GbyAI
GbyAI
宝玉的分享
宝玉的分享
爱范儿
爱范儿
博客园 - 【当耐特】
博客园 - 司徒正美
博客园 - 聂微东
P
Proofpoint News Feed
WordPress大学
WordPress大学
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
阮一峰的网络日志
阮一峰的网络日志
B
Blog RSS Feed
Jina AI
Jina AI
aimingoo的专栏
aimingoo的专栏
J
Java Code Geeks
博客园 - 叶小钗

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: surface cron model override diagnostics · openclaw/o...
steipete · 2026-05-15 · via Recent Commits to openclaw:main

@@ -115,6 +115,155 @@ function expectNoNoteContaining(message: string, title: string): void {

115115

}

116116117117

describe("maybeRepairLegacyCronStore", () => {

118+

it("surfaces cron payload model overrides without rewriting current jobs", async () => {

119+

const storePath = await makeTempStorePath();

120+

await writeCronStore(storePath, [

121+

{

122+

id: "api-pinned",

123+

name: "API pinned",

124+

enabled: true,

125+

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

126+

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

127+

schedule: { kind: "cron", expr: "0 7 * * *", tz: "UTC" },

128+

sessionTarget: "isolated",

129+

wakeMode: "now",

130+

payload: {

131+

kind: "agentTurn",

132+

message: "Morning brief",

133+

model: "openai/gpt-5.4",

134+

thinking: "high",

135+

},

136+

state: {},

137+

},

138+

{

139+

id: "other-pinned",

140+

name: "Other pinned",

141+

enabled: true,

142+

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

143+

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

144+

schedule: { kind: "cron", expr: "0 8 * * *", tz: "UTC" },

145+

sessionTarget: "isolated",

146+

wakeMode: "now",

147+

payload: {

148+

kind: "agentTurn",

149+

message: "Morning brief",

150+

model: "anthropic/claude-sonnet-4-6",

151+

},

152+

state: {},

153+

},

154+

{

155+

id: "inherits-default",

156+

name: "Inherits default",

157+

enabled: true,

158+

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

159+

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

160+

schedule: { kind: "cron", expr: "0 9 * * *", tz: "UTC" },

161+

sessionTarget: "isolated",

162+

wakeMode: "now",

163+

payload: {

164+

kind: "agentTurn",

165+

message: "Morning brief",

166+

},

167+

state: {},

168+

},

169+

]);

170+

const prompter = makePrompter(true);

171+172+

await maybeRepairLegacyCronStore({

173+

cfg: {

174+

cron: { store: storePath },

175+

agents: {

176+

defaults: {

177+

model: { primary: "openai/gpt-5.5", fallbacks: [] },

178+

},

179+

},

180+

},

181+

options: {},

182+

prompter,

183+

});

184+185+

expect(prompter.confirm).not.toHaveBeenCalled();

186+

expectNoteContaining("Cron model overrides detected", "Cron");

187+

expectNoteContaining("2 jobs set `payload.model`", "Cron");

188+

expectNoteContaining("Provider namespaces: anthropic=1, openai=1", "Cron");

189+

expectNoteContaining("2 jobs use a different model than `agents.defaults.model`", "Cron");

190+191+

const jobs = await readPersistedJobs(storePath);

192+

const job = requirePersistedJob(jobs, 0);

193+

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

194+

expect(payload.model).toBe("openai/gpt-5.4");

195+

expect(payload.thinking).toBe("high");

196+

});

197+198+

it("does not surface cron model override diagnostics when jobs inherit the default", async () => {

199+

const storePath = await makeTempStorePath();

200+

await writeCronStore(storePath, [

201+

{

202+

id: "inherits-default",

203+

name: "Inherits default",

204+

enabled: true,

205+

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

206+

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

207+

schedule: { kind: "cron", expr: "0 9 * * *", tz: "UTC" },

208+

sessionTarget: "isolated",

209+

wakeMode: "now",

210+

payload: {

211+

kind: "agentTurn",

212+

message: "Morning brief",

213+

},

214+

state: {},

215+

},

216+

]);

217+218+

await maybeRepairLegacyCronStore({

219+

cfg: createCronConfig(storePath),

220+

options: {},

221+

prompter: makePrompter(true),

222+

});

223+224+

expectNoNoteContaining("Cron model overrides detected", "Cron");

225+

});

226+227+

it("counts alias model pins as default mismatches", async () => {

228+

const storePath = await makeTempStorePath();

229+

await writeCronStore(storePath, [

230+

{

231+

id: "alias-pinned",

232+

name: "Alias pinned",

233+

enabled: true,

234+

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

235+

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

236+

schedule: { kind: "cron", expr: "0 10 * * *", tz: "UTC" },

237+

sessionTarget: "isolated",

238+

wakeMode: "now",

239+

payload: {

240+

kind: "agentTurn",

241+

message: "Morning brief",

242+

model: "gpt",

243+

},

244+

state: {},

245+

},

246+

]);

247+248+

await maybeRepairLegacyCronStore({

249+

cfg: {

250+

cron: { store: storePath },

251+

agents: {

252+

defaults: {

253+

model: { primary: "pi:opus", fallbacks: [] },

254+

},

255+

},

256+

},

257+

options: {},

258+

prompter: makePrompter(true),

259+

});

260+261+

expectNoteContaining("1 job set `payload.model`", "Cron");

262+

expectNoteContaining("Provider namespaces: bare/alias=1", "Cron");

263+

expectNoteContaining("1 job uses a different model than `agents.defaults.model`", "Cron");

264+

expectNoteContaining("Examples: alias-pinned -> gpt", "Cron");

265+

});

266+118267

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

119268

const storePath = await makeTempStorePath();

120269

await writeCronStore(storePath, [createLegacyCronJob()]);