test: pin silent reply fallback text · openclaw/openclaw@f093033
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -216,8 +216,7 @@ describe("normalizeReplyPayloadsForDelivery", () => {
|
216 | 216 | if (!reply?.text) { |
217 | 217 | throw new Error("expected direct silent reply rewrite to produce visible text"); |
218 | 218 | } |
219 | | -expect(reply.text.trim().length).toBeGreaterThan(0); |
220 | | -expect(reply.text.trim()).not.toBe("NO_REPLY"); |
| 219 | +expect(reply.text).toBe("Nothing additional from me."); |
221 | 220 | }); |
222 | 221 | |
223 | 222 | it("drops bare silent replies for groups when policy allows silence", () => { |
@@ -311,8 +310,7 @@ describe("normalizeReplyPayloadsForDelivery", () => {
|
311 | 310 | if (!reply?.text) { |
312 | 311 | throw new Error("expected visible silent-reply fallback text"); |
313 | 312 | } |
314 | | -expect(reply.text.length).toBeGreaterThan(0); |
315 | | -expect(reply.text).not.toBe("NO_REPLY"); |
| 313 | +expect(reply.text).toBe("No extra notes from me."); |
316 | 314 | } finally { |
317 | 315 | registerPendingSpawnedChildrenQuery(previousQuery); |
318 | 316 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。