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

推荐订阅源

爱范儿
爱范儿
H
Help Net Security
Jina AI
Jina AI
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
博客园 - 叶小钗
Y
Y Combinator Blog
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
WordPress大学
WordPress大学
C
Check Point Blog
Recent Announcements
Recent Announcements
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
美团技术团队
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
B
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
test: tighten task flow assertions · openclaw/openclaw@ed...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -90,15 +90,14 @@ describe("task-flow-registry store runtime", () => {

9090

},

9191

});

929293-

expect(getTaskFlowById("flow-restored")).toMatchObject({

94-

flowId: "flow-restored",

95-

syncMode: "managed",

96-

controllerId: "tests/restored-controller",

97-

revision: 4,

98-

stateJson: { lane: "triage", done: 3 },

99-

waitJson: { kind: "task", taskId: "task-restored" },

100-

cancelRequestedAt: 115,

101-

});

93+

const restored = getTaskFlowById("flow-restored");

94+

expect(restored?.flowId).toBe("flow-restored");

95+

expect(restored?.syncMode).toBe("managed");

96+

expect(restored?.controllerId).toBe("tests/restored-controller");

97+

expect(restored?.revision).toBe(4);

98+

expect(restored?.stateJson).toEqual({ lane: "triage", done: 3 });

99+

expect(restored?.waitJson).toEqual({ kind: "task", taskId: "task-restored" });

100+

expect(restored?.cancelRequestedAt).toBe(115);

102101

expect(loadSnapshot).toHaveBeenCalledTimes(1);

103102104103

createManagedTaskFlow({

@@ -145,31 +144,29 @@ describe("task-flow-registry store runtime", () => {

145144

stateJson: { phase: "ask_user" },

146145

waitJson: { kind: "external_event", topic: "forum" },

147146

});

148-

expect(waiting).toMatchObject({

149-

applied: true,

150-

});

147+

expect(waiting.applied).toBe(true);

148+

if (!waiting.applied) {

149+

throw new Error("Expected wait state update to apply");

150+

}

151151

const cancelRequested = requestFlowCancel({

152152

flowId: created.flowId,

153-

expectedRevision: waiting.applied ? waiting.flow.revision : -1,

153+

expectedRevision: waiting.flow.revision,

154154

cancelRequestedAt: 444,

155155

});

156-

expect(cancelRequested).toMatchObject({

157-

applied: true,

158-

});

156+

expect(cancelRequested.applied).toBe(true);

159157160158

resetTaskFlowRegistryForTests({ persist: false });

161159162-

expect(getTaskFlowById(created.flowId)).toMatchObject({

163-

flowId: created.flowId,

164-

syncMode: "managed",

165-

controllerId: "tests/persisted-flow",

166-

revision: 2,

167-

status: "waiting",

168-

currentStep: "ask_user",

169-

stateJson: { phase: "ask_user" },

170-

waitJson: { kind: "external_event", topic: "forum" },

171-

cancelRequestedAt: 444,

172-

});

160+

const restored = getTaskFlowById(created.flowId);

161+

expect(restored?.flowId).toBe(created.flowId);

162+

expect(restored?.syncMode).toBe("managed");

163+

expect(restored?.controllerId).toBe("tests/persisted-flow");

164+

expect(restored?.revision).toBe(2);

165+

expect(restored?.status).toBe("waiting");

166+

expect(restored?.currentStep).toBe("ask_user");

167+

expect(restored?.stateJson).toEqual({ phase: "ask_user" });

168+

expect(restored?.waitJson).toEqual({ kind: "external_event", topic: "forum" });

169+

expect(restored?.cancelRequestedAt).toBe(444);

173170

});

174171

});

175172

@@ -188,11 +185,10 @@ describe("task-flow-registry store runtime", () => {

188185189186

resetTaskFlowRegistryForTests({ persist: false });

190187191-

expect(getTaskFlowById(created.flowId)).toMatchObject({

192-

flowId: created.flowId,

193-

stateJson: null,

194-

waitJson: null,

195-

});

188+

const restored = getTaskFlowById(created.flowId);

189+

expect(restored?.flowId).toBe(created.flowId);

190+

expect(restored?.stateJson).toBeNull();

191+

expect(restored?.waitJson).toBeNull();

196192

});

197193

});

198194