fix(cron): trust agent output when channel is unresolved without expl… · openclaw/openclaw@b90f7d2
fsdwen
·
2026-06-16
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -56,6 +56,16 @@ describe("cron channel output policy", () => {
|
56 | 56 | ).resolves.toEqual({ |
57 | 57 | preferFinalAssistantVisibleText: false, |
58 | 58 | }); |
| 59 | +// deliveryRequested is optional — undefined and missing opts are |
| 60 | +// equivalent to "not requested" (no channel to deliver to). #90664 |
| 61 | +await expect( |
| 62 | +resolveCronChannelOutputPolicy(undefined, { deliveryRequested: undefined }), |
| 63 | +).resolves.toEqual({ |
| 64 | +preferFinalAssistantVisibleText: true, |
| 65 | +}); |
| 66 | +await expect(resolveCronChannelOutputPolicy(undefined)).resolves.toEqual({ |
| 67 | +preferFinalAssistantVisibleText: true, |
| 68 | +}); |
59 | 69 | }); |
60 | 70 | |
61 | 71 | it("lets channel plugins format current tool context targets", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。