From 29e6f13b29c8b250458f1001a690583c73c28347 Mon Sep 17 00:00:00 2001 From: Austin Mudd Date: Wed, 7 Jan 2026 23:30:30 -0800 Subject: [PATCH] Test: add threadTs passthrough test for Slack sendMessage --- src/agents/tools/slack-actions.test.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/agents/tools/slack-actions.test.ts b/src/agents/tools/slack-actions.test.ts index 8f2c3e9f8..d80558b04 100644 --- a/src/agents/tools/slack-actions.test.ts +++ b/src/agents/tools/slack-actions.test.ts @@ -110,4 +110,21 @@ describe("handleSlackAction", () => { ), ).rejects.toThrow(/Slack reactions are disabled/); }); + + it("passes threadTs to sendSlackMessage for thread replies", async () => { + const cfg = { slack: { botToken: "tok" } } as ClawdbotConfig; + await handleSlackAction( + { + action: "sendMessage", + to: "channel:C123", + content: "Hello thread", + threadTs: "1234567890.123456", + }, + cfg, + ); + expect(sendSlackMessage).toHaveBeenCalledWith("channel:C123", "Hello thread", { + mediaUrl: undefined, + threadTs: "1234567890.123456", + }); + }); });