fix: treat aborted subagent lifecycle events as killed · openclaw/openclaw@8df01a8
steipete
·
2026-05-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1008,6 +1008,7 @@ describe("subagent registry seam flow", () => {
|
1008 | 1008 | phase: "end", |
1009 | 1009 | startedAt: 10, |
1010 | 1010 | endedAt: 20, |
| 1011 | +aborted: true, |
1011 | 1012 | stopReason: "aborted", |
1012 | 1013 | }, |
1013 | 1014 | }); |
@@ -1037,6 +1038,9 @@ describe("subagent registry seam flow", () => {
|
1037 | 1038 | .find((entry) => entry.runId === "run-aborted-end"); |
1038 | 1039 | expect(run?.endedReason).toBe("subagent-killed"); |
1039 | 1040 | expect(run?.outcome?.status).toBe("error"); |
| 1041 | + |
| 1042 | +await vi.advanceTimersByTimeAsync(20_000); |
| 1043 | +expect(mocks.runSubagentAnnounceFlow).toHaveBeenCalledTimes(1); |
1040 | 1044 | }); |
1041 | 1045 | |
1042 | 1046 | it("preserves run-mode keep entries past SESSION_RUN_TTL_MS sweep", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。