test: check subagent announce dispatch · openclaw/openclaw@6fdcb10
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -494,14 +494,8 @@ describe("subagent announce formatting", () => {
|
494 | 494 | endedAt: 20, |
495 | 495 | }); |
496 | 496 | |
497 | | -expect(agentSpy).toHaveBeenCalled(); |
498 | | -const call = agentSpy.mock.calls[0]?.[0] as { |
499 | | -params?: { |
500 | | -message?: string; |
501 | | -sessionKey?: string; |
502 | | -internalEvents?: Array<{ type?: string; taskLabel?: string }>; |
503 | | -}; |
504 | | -}; |
| 497 | +expect(agentSpy).toHaveBeenCalledTimes(1); |
| 498 | +const call = getAgentCall(); |
505 | 499 | const msg = call?.params?.message as string; |
506 | 500 | expect(call?.params?.sessionKey).toBe("agent:main:main"); |
507 | 501 | expect(msg).toContain("OpenClaw runtime context (internal):"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。