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

推荐订阅源

Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
月光博客
月光博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 聂微东
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
雷峰网
雷峰网
小众软件
小众软件
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
美团技术团队
宝玉的分享
宝玉的分享
Hugging Face - Blog
Hugging Face - Blog
阮一峰的网络日志
阮一峰的网络日志
A
About on SuperTechFans
Jina AI
Jina AI
D
Docker
Last Week in AI
Last Week in AI
MongoDB | Blog
MongoDB | Blog
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog

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: continue update runs after restart (#74362) (thanks ...
2026-05-03 · via Recent Commits to openclaw:main

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

11

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

2-

import type { RestartSentinelPayload } from "../../infra/restart-sentinel.js";

2+

import {

3+

DEFAULT_RESTART_SUCCESS_CONTINUATION_MESSAGE,

4+

type RestartSentinelPayload,

5+

} from "../../infra/restart-sentinel.js";

36

import type { UpdateInstallSurface, UpdateRunResult } from "../../infra/update-runner.js";

4758

// Capture the sentinel payload written during update.run

@@ -102,6 +105,7 @@ vi.mock("./restart-request.js", () => ({

102105

parseRestartRequestParams: (params: Record<string, unknown>) => ({

103106

sessionKey: params.sessionKey,

104107

note: params.note,

108+

continuationMessage: params.continuationMessage,

105109

restartDelayMs: undefined,

106110

}),

107111

}));

@@ -167,7 +171,10 @@ describe("update.run sentinel deliveryContext", () => {

167171

to: "webchat:user-123",

168172

accountId: "default",

169173

});

170-

expect(capturedPayload!.continuation).toBeUndefined();

174+

expect(capturedPayload!.continuation).toEqual({

175+

kind: "agentTurn",

176+

message: DEFAULT_RESTART_SUCCESS_CONTINUATION_MESSAGE,

177+

});

171178

});

172179173180

it("omits deliveryContext when no sessionKey is provided", async () => {

@@ -193,7 +200,25 @@ describe("update.run sentinel deliveryContext", () => {

193200

accountId: "workspace-1",

194201

});

195202

expect(capturedPayload!.threadId).toBe("1234567890.123456");

196-

expect(capturedPayload!.continuation).toBeUndefined();

203+

expect(capturedPayload!.continuation).toEqual({

204+

kind: "agentTurn",

205+

message: DEFAULT_RESTART_SUCCESS_CONTINUATION_MESSAGE,

206+

});

207+

});

208+209+

it("uses an explicit continuationMessage in successful update sentinels", async () => {

210+

capturedPayload = undefined;

211+212+

await invokeUpdateRun({

213+

sessionKey: "agent:main:webchat:dm:user-123",

214+

continuationMessage: "Check the running version and finish the update report.",

215+

});

216+217+

expect(capturedPayload).toBeDefined();

218+

expect(capturedPayload!.continuation).toEqual({

219+

kind: "agentTurn",

220+

message: "Check the running version and finish the update report.",

221+

});

197222

});

198223

});

199224

@@ -234,10 +259,16 @@ describe("update.run restart scheduling", () => {

234259235260

let payload: { ok: boolean; restart: unknown } | undefined;

236261237-

await invokeUpdateRun({}, (_ok: boolean, response: unknown) => {

238-

const typed = response as { ok: boolean; restart: unknown };

239-

payload = typed;

240-

});

262+

await invokeUpdateRun(

263+

{

264+

sessionKey: "agent:main:webchat:dm:user-123",

265+

continuationMessage: "This should not run after a failed update.",

266+

},

267+

(_ok: boolean, response: unknown) => {

268+

const typed = response as { ok: boolean; restart: unknown };

269+

payload = typed;

270+

},

271+

);

241272242273

expect(scheduleGatewaySigusr1RestartMock).not.toHaveBeenCalled();

243274

expect(payload?.ok).toBe(false);