test(message): cover reasoning-only sanitization

This commit is contained in:
Val Alexander
2026-05-04 00:40:15 -05:00
parent 782ff6a836
commit 27b7f24bf3

View File

@@ -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 }) => {