From 0dc3fb1ca2141b5c0fc97715f37b10d64d7d407f Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Tue, 2 Jun 2026 18:49:05 -0700 Subject: [PATCH 1/2] fix(slack): request reactions:read in OAuth URL, drop im:history --- apps/sim/lib/oauth/oauth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/lib/oauth/oauth.ts b/apps/sim/lib/oauth/oauth.ts index 8ecad13612..4f22fb05b1 100644 --- a/apps/sim/lib/oauth/oauth.ts +++ b/apps/sim/lib/oauth/oauth.ts @@ -703,7 +703,6 @@ export const OAUTH_PROVIDERS: Record = { 'chat:write', 'chat:write.public', 'im:write', - 'im:history', 'im:read', 'users:read', // TODO: Add 'users:read.email' once Slack app review is approved @@ -712,6 +711,7 @@ export const OAUTH_PROVIDERS: Record = { 'canvases:read', 'canvases:write', 'reactions:write', + 'reactions:read', ], }, }, From 0543dcc33f497a1c57bbe846fcd4190b9e28a75a Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Tue, 2 Jun 2026 19:10:10 -0700 Subject: [PATCH 2/2] chore(slack): update read-messages missing-scope message to drop im:history --- apps/sim/app/api/tools/slack/read-messages/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/app/api/tools/slack/read-messages/route.ts b/apps/sim/app/api/tools/slack/read-messages/route.ts index 5960b6f20d..712ccbc7f0 100644 --- a/apps/sim/app/api/tools/slack/read-messages/route.ts +++ b/apps/sim/app/api/tools/slack/read-messages/route.ts @@ -105,7 +105,7 @@ export const POST = withRouteHandler(async (request: NextRequest) => { { success: false, error: - 'Missing required permissions. Please reconnect your Slack account with the necessary scopes (channels:history, groups:history, im:history).', + 'Missing required permissions. Reconnect your Slack account to grant channel history access (channels:history, groups:history). Reading direct message history is not supported with the Sim bot.', }, { status: 400 } )