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

推荐订阅源

The Cloudflare Blog
L
LangChain Blog
WordPress大学
WordPress大学
V
V2EX
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
D
Docker
Recent Announcements
Recent Announcements
GbyAI
GbyAI
博客园 - 叶小钗
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
Y
Y Combinator Blog
雷峰网
雷峰网
The GitHub Blog
The GitHub 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: require task parent flow ids · openclaw/openclaw@2c...
steipete · 2026-05-09 · via Recent Commits to openclaw:main

@@ -101,6 +101,16 @@ async function withTaskExecutorStateDir(run: (stateDir: string) => Promise<void>

101101

});

102102

}

103103104+

function expectParentFlowId(task: { parentFlowId?: string }): string {

105+

expect(task.parentFlowId).toMatch(

106+

/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/u,

107+

);

108+

if (task.parentFlowId === undefined) {

109+

throw new Error("Expected task parent flow id");

110+

}

111+

return task.parentFlowId;

112+

}

113+104114

function createRunningAcpChildTaskRun(

105115

overrides: Partial<Parameters<typeof createRunningTaskRun>[0]> = {},

106116

) {

@@ -289,11 +299,9 @@ describe("task-executor", () => {

289299

deliveryStatus: "pending",

290300

});

291301292-

expect(created.parentFlowId).toMatch(

293-

/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/u,

294-

);

295-

expect(getTaskFlowById(created.parentFlowId!)).toMatchObject({

296-

flowId: created.parentFlowId,

302+

const parentFlowId = expectParentFlowId(created);

303+

expect(getTaskFlowById(parentFlowId)).toMatchObject({

304+

flowId: parentFlowId,

297305

ownerKey: "agent:main:main",

298306

status: "running",

299307

goal: "Write summary",

@@ -307,8 +315,8 @@ describe("task-executor", () => {

307315

terminalSummary: "Done.",

308316

});

309317310-

expect(getTaskFlowById(created.parentFlowId!)).toMatchObject({

311-

flowId: created.parentFlowId,

318+

expect(getTaskFlowById(parentFlowId)).toMatchObject({

319+

flowId: parentFlowId,

312320

status: "succeeded",

313321

endedAt: 40,

314322

goal: "Write summary",

@@ -366,16 +374,17 @@ describe("task-executor", () => {

366374

terminalOutcome: "blocked",

367375

terminalSummary: "Writable session required.",

368376

});

369-

expect(getTaskFlowById(created.parentFlowId!)).toMatchObject({

370-

flowId: created.parentFlowId,

377+

const parentFlowId = expectParentFlowId(created);

378+

expect(getTaskFlowById(parentFlowId)).toMatchObject({

379+

flowId: parentFlowId,

371380

status: "blocked",

372381

blockedTaskId: created.taskId,

373382

blockedSummary: "Writable session required.",

374383

endedAt: 40,

375384

});

376385377386

const retried = retryBlockedFlowAsQueuedTaskRun({

378-

flowId: created.parentFlowId!,

387+

flowId: parentFlowId,

379388

runId: "run-executor-retry",

380389

childSessionKey: "agent:codex:acp:retry-child",

381390

});

@@ -387,17 +396,17 @@ describe("task-executor", () => {

387396

taskId: created.taskId,

388397

}),

389398

task: expect.objectContaining({

390-

parentFlowId: created.parentFlowId,

399+

parentFlowId,

391400

parentTaskId: created.taskId,

392401

status: "queued",

393402

runId: "run-executor-retry",

394403

}),

395404

});

396-

expect(getTaskFlowById(created.parentFlowId!)).toMatchObject({

397-

flowId: created.parentFlowId,

405+

expect(getTaskFlowById(parentFlowId)).toMatchObject({

406+

flowId: parentFlowId,

398407

status: "queued",

399408

});

400-

expect(findLatestTaskForFlowId(created.parentFlowId!)).toMatchObject({

409+

expect(findLatestTaskForFlowId(parentFlowId)).toMatchObject({

401410

runId: "run-executor-retry",

402411

});

403412

expect(findTaskByRunId("run-executor-blocked")).toMatchObject({