test: tighten incomplete turn meta assertion · openclaw/openclaw@fa87c91
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
File tree
src/agents/pi-embedded-runner
| Original file line number | Diff line number | Diff line change |
|---|
@@ -65,13 +65,9 @@ describe("runEmbeddedPiAgent incomplete-turn safety", () => {
|
65 | 65 | |
66 | 66 | expect(mockedRunEmbeddedAttempt).toHaveBeenCalledTimes(1); |
67 | 67 | expect(result.payloads).toEqual([{ text: "Blocked by before-run policy.", isError: true }]); |
68 | | -expect(result.meta).toMatchObject({ |
69 | | -finalAssistantVisibleText: "Blocked by before-run policy.", |
70 | | -finalAssistantRawText: "Blocked by before-run policy.", |
71 | | -finalPromptText: undefined, |
72 | | -livenessState: "blocked", |
73 | | -error: { kind: "hook_block", message: "Blocked by before-run policy." }, |
74 | | -}); |
| 68 | +expect(result.meta?.finalAssistantVisibleText).toBe("Blocked by before-run policy."); |
| 69 | +expect(result.meta?.finalAssistantRawText).toBe("Blocked by before-run policy."); |
| 70 | +expect(result.meta?.finalPromptText).toBeUndefined(); |
75 | 71 | expect(result.meta?.error).toEqual({ |
76 | 72 | kind: "hook_block", |
77 | 73 | message: "Blocked by before-run policy.", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。