Skip to content

feat(slack): GA slack_v2 with agent_view custom-bot manifests#5876

Draft
TheodoreSpeaks wants to merge 1 commit into
stagingfrom
feat/slack-v2-entitlement
Draft

feat(slack): GA slack_v2 with agent_view custom-bot manifests#5876
TheodoreSpeaks wants to merge 1 commit into
stagingfrom
feat/slack-v2-entitlement

Conversation

@TheodoreSpeaks

@TheodoreSpeaks TheodoreSpeaks commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Caution

DO NOT MERGE — on hold pending Sim Slack app availability (Slack app-review scope approval + native Sim-app trigger mode landing on staging).

Summary

  • GA slack_v2: drop the preview flag, register SlackV2BlockMeta, hide the legacy slack block from discovery (existing workflows keep executing — triggers.enabled stays on because webhook-execution gates on it at runtime)
  • custom-bot wizard manifests migrate to the agent messaging experience: features.agent_view (new Slack apps can no longer use assistant_view), agent event set (app_home_opened, app_context_changed, message.im), description capped at Slack's 300-char limit
  • new app_context_changed trigger event with context (entities) passthrough in the webhook normalizer
  • no copilot entitlement — slack_v2 is public, so the evaluator is gone; deploy before mothership PR simstudioai/mothership#365

Type of Change

  • New feature

Testing

capabilities + slack provider vitest passing (incl. agent_view/event-set/cap tests), tsc clean, API validation audit passed; exercised live against a real Slack workspace (wizard app creation, mention/DM bots, buttons + modal submits)

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Jul 23, 2026 5:06pm

Request Review

@cursor

cursor Bot commented Jul 23, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
GA block discovery changes and Slack manifest/event-model shifts affect new app creation and agent workflows; legacy v1 execution paths are intentionally preserved but coexist with the migration.

Overview
slack_v2 is now GA: the preview gate is removed, SlackV2BlockMeta is registered, and the legacy slack block is hidden from discovery with a sunset pointer to slack_v2 while triggers.enabled stays on so existing v1 webhook workflows keep running.

Custom-bot manifests and the connect wizard move from Slack’s deprecated assistant_view to features.agent_view: the AI capability is labeled AI agent, descriptions use agent_description (capped at 300 chars), and subscribed bot events are app_home_opened, app_context_changed, and message.im instead of assistant_thread_*.

Triggers and webhooks add app_context_changed (catalog + event resolution) and pass context (viewing entities) through the Slack webhook normalizer and shared trigger outputs.

Reviewed by Cursor Bugbot for commit e8d69c6. Bugbot is set up for automated code reviews on this repo. Configure here.

@greptile-apps

greptile-apps Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds Slack v2 entitlement handling and migrates custom Slack apps to the agent messaging experience. The main changes are:

  • Adds a per-viewer slack-v2 copilot entitlement.
  • Generates agent_view manifests with the new agent event set.
  • Normalizes app_context_changed context into trigger output.
  • Updates Slack setup copy and manifest tests.

Confidence Score: 5/5

This looks safe to merge after a small trigger-output description cleanup.

  • The entitlement remains fail-closed and isolated by workspace and user.
  • Agent manifest generation and webhook routing are consistent with the new event set.
  • The only identified issue is misleading metadata for the new context output.

apps/sim/triggers/slack/shared.ts

Important Files Changed

Filename Overview
apps/sim/lib/copilot/entitlements.ts Adds the fail-closed, per-viewer Slack v2 entitlement evaluation.
apps/sim/triggers/slack/capabilities.ts Migrates generated manifests to agent_view, updates events, and limits agent descriptions.
apps/sim/lib/webhooks/providers/slack.ts Recognizes and normalizes app_context_changed events.
apps/sim/triggers/slack/shared.ts Adds the context output and event catalog entry, but describes the context object as an array.
apps/sim/triggers/slack/capabilities.test.ts Covers the new manifest feature, event set, fallback text, and description limit.
apps/sim/app/workspace/[workspaceId]/integrations/components/connect-slack-bot-modal/connect-slack-bot-modal.tsx Updates Slack setup terminology from assistant to agent.

Reviews (1): Last reviewed commit: "feat(slack): slack-v2 copilot entitlemen..." | Re-trigger Greptile

Comment thread apps/sim/triggers/slack/shared.ts

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b6aab2c. Configure here.

Comment thread apps/sim/triggers/slack/capabilities.ts
Comment thread apps/sim/triggers/slack/capabilities.ts
@TheodoreSpeaks TheodoreSpeaks changed the title feat(slack): slack-v2 copilot entitlement and agent_view custom-bot manifests feat(slack): GA slack_v2 with agent_view custom-bot manifests Jul 23, 2026
@TheodoreSpeaks
TheodoreSpeaks force-pushed the feat/slack-v2-entitlement branch from 0448480 to cab4359 Compare July 23, 2026 08:03
@TheodoreSpeaks
TheodoreSpeaks force-pushed the feat/slack-v2-entitlement branch from cab4359 to 07233c2 Compare July 23, 2026 08:48
@TheodoreSpeaks
TheodoreSpeaks force-pushed the feat/slack-v2-entitlement branch from 07233c2 to e8d69c6 Compare July 23, 2026 17:06
@TheodoreSpeaks
TheodoreSpeaks marked this pull request as draft July 23, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant