From 27b7f24bf3621e97de65b98c13332eaca5fca54f Mon Sep 17 00:00:00 2001 From: Val Alexander <68980965+BunsDev@users.noreply.github.com> Date: Mon, 4 May 2026 00:40:15 -0500 Subject: [PATCH] test(message): cover reasoning-only sanitization --- src/agents/tools/message-tool.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/agents/tools/message-tool.test.ts b/src/agents/tools/message-tool.test.ts index 182693ed0cd..9c541a769a3 100644 --- a/src/agents/tools/message-tool.test.ts +++ b/src/agents/tools/message-tool.test.ts @@ -1114,6 +1114,13 @@ describe("message tool reasoning tag sanitization", () => { target: "telegram:123", channel: "telegram", }, + { + field: "message", + input: "Reasoning:\n_internal plan_\n_more internal notes_", + expected: "", + target: "telegram:123", + channel: "telegram", + }, ])( "sanitizes reasoning tags in $field before sending", async ({ channel, target, field, input, expected }) => {