Skip to content

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

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

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

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 8:08am

Request Review

@cursor

cursor Bot commented Jul 23, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Changes Slack app manifests and discovery for a widely used integration; misconfiguration could affect new bot setups, while v1 execution paths are explicitly preserved.

Overview
Slack v2 is generally available — the preview gate is removed, SlackV2BlockMeta is registered, and the legacy slack block is hidden from discovery with a sunset pointer to slack_v2. Existing v1 workflows keep running; v1 webhook triggers stay enabled because runtime execution depends on that flag.

Custom-bot manifests move to Slack’s current agent messaging model: features.agent_view (replacing deprecated assistant_view), agent-oriented copy in the wizard, agent_description capped at 300 characters, and bot events app_home_opened, app_context_changed, and message.im instead of assistant_thread_*.

Triggers and webhooks add app_context_changed to the event catalog and normalizer, exposing context (viewing entities) on trigger output. Capability tests are updated for the new manifest shape.

Reviewed by Cursor Bugbot for commit 07233c2. 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
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