test: regularize codex collab statuses · openclaw/openclaw@81fe17c
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -367,18 +367,20 @@ describe("CodexNativeSubagentTaskMirror", () => {
|
367 | 367 | }, |
368 | 368 | }); |
369 | 369 | |
370 | | -expect(runtime.recordTaskRunProgressByRunId).toHaveBeenCalledWith( |
371 | | -expect.objectContaining({ |
372 | | -runId: "codex-thread:child-thread", |
373 | | -progressSummary: "Codex native subagent is initializing.", |
374 | | -}), |
375 | | -); |
376 | | -expect(runtime.finalizeTaskRunByRunId).toHaveBeenCalledWith( |
377 | | -expect.objectContaining({ |
378 | | -runId: "codex-thread:child-thread", |
379 | | -status: "succeeded", |
380 | | -terminalSummary: "done", |
381 | | -}), |
382 | | -); |
| 370 | +expect(runtime.recordTaskRunProgressByRunId).toHaveBeenCalledWith({ |
| 371 | +runId: "codex-thread:child-thread", |
| 372 | +runtime: "subagent", |
| 373 | +lastEventAt: 60_000, |
| 374 | +progressSummary: "Codex native subagent is initializing.", |
| 375 | +}); |
| 376 | +expect(runtime.finalizeTaskRunByRunId).toHaveBeenCalledWith({ |
| 377 | +runId: "codex-thread:child-thread", |
| 378 | +runtime: "subagent", |
| 379 | +status: "succeeded", |
| 380 | +endedAt: 60_000, |
| 381 | +lastEventAt: 60_000, |
| 382 | +progressSummary: "done", |
| 383 | +terminalSummary: "done", |
| 384 | +}); |
383 | 385 | }); |
384 | 386 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。