test: terminate codex subagent statuses · openclaw/openclaw@108507f
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -168,24 +168,25 @@ describe("CodexNativeSubagentTaskMirror", () => {
|
168 | 168 | }, |
169 | 169 | }); |
170 | 170 | |
171 | | -expect(runtime.finalizeTaskRunByRunId).toHaveBeenNthCalledWith( |
172 | | -1, |
173 | | -expect.objectContaining({ |
174 | | -runId: codexNativeSubagentRunId("child-thread"), |
175 | | -runtime: "subagent", |
176 | | -status: "succeeded", |
177 | | -terminalSummary: "Codex native subagent finished.", |
178 | | -}), |
179 | | -); |
180 | | -expect(runtime.finalizeTaskRunByRunId).toHaveBeenNthCalledWith( |
181 | | -2, |
182 | | -expect.objectContaining({ |
183 | | -runId: codexNativeSubagentRunId("failed-child"), |
184 | | -runtime: "subagent", |
185 | | -status: "failed", |
186 | | -terminalSummary: "Codex native subagent failed.", |
187 | | -}), |
188 | | -); |
| 171 | +expect(runtime.finalizeTaskRunByRunId).toHaveBeenNthCalledWith(1, { |
| 172 | +runId: codexNativeSubagentRunId("child-thread"), |
| 173 | +runtime: "subagent", |
| 174 | +status: "succeeded", |
| 175 | +endedAt: 30_000, |
| 176 | +lastEventAt: 30_000, |
| 177 | +progressSummary: "Codex native subagent is idle.", |
| 178 | +terminalSummary: "Codex native subagent finished.", |
| 179 | +}); |
| 180 | +expect(runtime.finalizeTaskRunByRunId).toHaveBeenNthCalledWith(2, { |
| 181 | +runId: codexNativeSubagentRunId("failed-child"), |
| 182 | +runtime: "subagent", |
| 183 | +status: "failed", |
| 184 | +endedAt: 30_000, |
| 185 | +lastEventAt: 30_000, |
| 186 | +error: "Codex app-server reported a system error for the native subagent thread.", |
| 187 | +progressSummary: "Codex native subagent hit a system error.", |
| 188 | +terminalSummary: "Codex native subagent failed.", |
| 189 | +}); |
189 | 190 | }); |
190 | 191 | |
191 | 192 | it("creates and updates tasks from Codex collab agent item state", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。