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

推荐订阅源

The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
月光博客
月光博客
博客园 - Franky
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
有赞技术团队
有赞技术团队
V
V2EX
IT之家
IT之家
阮一峰的网络日志
阮一峰的网络日志
Stack Overflow Blog
Stack Overflow Blog
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
腾讯CDC
D
DataBreaches.Net
Hugging Face - Blog
Hugging Face - Blog
Martin Fowler
Martin Fowler
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
WordPress大学
WordPress大学
C
Check Point Blog
Microsoft Azure Blog
Microsoft Azure Blog
Microsoft Security Blog
Microsoft Security 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(gateway): mark active main sessions before restart sh...
ooiuuii · 2026-06-14 · via Recent Commits to openclaw:main

@@ -156,6 +156,23 @@ describe("OpenClaw SDK", () => {

156156

expect(result.error?.message).toBe("aborted by operator");

157157

});

158158159+

it("maps restart wait snapshots to cancelled", async () => {

160+

const transport = new FakeTransport({

161+

"agent.wait": {

162+

status: "timeout",

163+

runId: "run_restart",

164+

stopReason: "restart",

165+

providerStarted: true,

166+

},

167+

});

168+

const oc = new OpenClaw({ transport });

169+170+

const result = await oc.runs.wait("run_restart");

171+172+

expect(result.runId).toBe("run_restart");

173+

expect(result.status).toBe("cancelled");

174+

});

175+159176

it("maps provider-started rpc timeout wait snapshots to timed_out", async () => {

160177

const transport = new FakeTransport({

161178

"agent.wait": {

@@ -1209,9 +1226,57 @@ describe("OpenClaw SDK", () => {

12091226

expect(cancelled.runId).toBe("run_1");

12101227

expect(cancelled.data).toEqual({ phase: "end", aborted: true, stopReason: "rpc" });

121112281212-

const hardTimeout = normalizeGatewayEvent({

1229+

const restartCancelled = normalizeGatewayEvent({

12131230

event: "agent",

12141231

seq: 6,

1232+

payload: {

1233+

runId: "run_1",

1234+

stream: "lifecycle",

1235+

ts,

1236+

data: {

1237+

phase: "end",

1238+

aborted: true,

1239+

stopReason: "restart",

1240+

providerStarted: true,

1241+

},

1242+

},

1243+

});

1244+

expect(restartCancelled.type).toBe("run.cancelled");

1245+

expect(restartCancelled.runId).toBe("run_1");

1246+

expect(restartCancelled.data).toEqual({

1247+

phase: "end",

1248+

aborted: true,

1249+

stopReason: "restart",

1250+

providerStarted: true,

1251+

});

1252+1253+

const restartErrorCancelled = normalizeGatewayEvent({

1254+

event: "agent",

1255+

seq: 7,

1256+

payload: {

1257+

runId: "run_1",

1258+

stream: "lifecycle",

1259+

ts,

1260+

data: {

1261+

phase: "error",

1262+

aborted: true,

1263+

stopReason: "restart",

1264+

error: "agent run aborted for restart",

1265+

},

1266+

},

1267+

});

1268+

expect(restartErrorCancelled.type).toBe("run.cancelled");

1269+

expect(restartErrorCancelled.runId).toBe("run_1");

1270+

expect(restartErrorCancelled.data).toEqual({

1271+

phase: "error",

1272+

aborted: true,

1273+

stopReason: "restart",

1274+

error: "agent run aborted for restart",

1275+

});

1276+1277+

const hardTimeout = normalizeGatewayEvent({

1278+

event: "agent",

1279+

seq: 8,

12151280

payload: {

12161281

runId: "run_1",

12171282

stream: "lifecycle",

@@ -1237,7 +1302,7 @@ describe("OpenClaw SDK", () => {

1237130212381303

const hardTimeoutError = normalizeGatewayEvent({

12391304

event: "agent",

1240-

seq: 7,

1305+

seq: 9,

12411306

payload: {

12421307

runId: "run_1",

12431308

stream: "lifecycle",

@@ -1261,7 +1326,7 @@ describe("OpenClaw SDK", () => {

1261132612621327

const providerStartedError = normalizeGatewayEvent({

12631328

event: "agent",

1264-

seq: 8,

1329+

seq: 10,

12651330

payload: {

12661331

runId: "run_1",

12671332

stream: "lifecycle",

@@ -1283,7 +1348,7 @@ describe("OpenClaw SDK", () => {

1283134812841349

const hardTimeoutEnd = normalizeGatewayEvent({

12851350

event: "agent",

1286-

seq: 9,

1351+

seq: 11,

12871352

payload: {

12881353

runId: "run_1",

12891354

stream: "lifecycle",

@@ -1305,7 +1370,7 @@ describe("OpenClaw SDK", () => {

1305137013061371

const providerStartedEnd = normalizeGatewayEvent({

13071372

event: "agent",

1308-

seq: 10,

1373+

seq: 12,

13091374

payload: {

13101375

runId: "run_1",

13111376

stream: "lifecycle",

@@ -1325,7 +1390,7 @@ describe("OpenClaw SDK", () => {

1325139013261391

const authRevoked = normalizeGatewayEvent({

13271392

event: "agent",

1328-

seq: 10,

1393+

seq: 13,

13291394

payload: {

13301395

runId: "run_1",

13311396

stream: "lifecycle",

@@ -1343,7 +1408,7 @@ describe("OpenClaw SDK", () => {

1343140813441409

const timedOut = normalizeGatewayEvent({

13451410

event: "agent",

1346-

seq: 11,

1411+

seq: 14,

13471412

payload: {

13481413

runId: "run_1",

13491414

stream: "lifecycle",