From 07e803cfdda3860aebe72bbc83954ffdd5648a18 Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Wed, 12 Nov 2025 21:46:00 -0800 Subject: [PATCH] fix(slack): remove update message incorrect canonical param (#1964) * fix(slack): send message tool * add logging * add more logs * add more logs * fix canonical param --- apps/sim/blocks/blocks/slack.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/sim/blocks/blocks/slack.ts b/apps/sim/blocks/blocks/slack.ts index 461f9c6fde..c0ff5dadfc 100644 --- a/apps/sim/blocks/blocks/slack.ts +++ b/apps/sim/blocks/blocks/slack.ts @@ -229,7 +229,6 @@ export const SlackBlock: BlockConfig = { id: 'updateText', title: 'New Message Text', type: 'long-input', - canonicalParamId: 'text', placeholder: 'Enter new message text (supports Slack mrkdwn)', condition: { field: 'operation', @@ -316,6 +315,7 @@ export const SlackBlock: BlockConfig = { operation, channel, manualChannel, + text, title, content, limit, @@ -359,10 +359,10 @@ export const SlackBlock: BlockConfig = { // Handle operation-specific params switch (operation) { case 'send': { - if (!rest.text) { + if (!text || text.trim() === '') { throw new Error('Message text is required for send operation') } - baseParams.text = rest.text + baseParams.text = text // Add thread_ts if provided if (threadTs) { baseParams.thread_ts = threadTs