feat(slack): add agent sessions and streaming - #7296
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile SummaryThis PR adds Slack Agent Session support and streams selected workflow outputs back into originating Slack conversations. The follow-up fixes preserve legacy suggested-prompt workflows and subscribe custom bots to the selectable assistant-thread events.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| apps/sim/blocks/blocks/slack.ts | Adds Agent Session operations while routing persisted OAuth suggested-prompt blocks through the compatible legacy tool and parameter shape. |
| apps/sim/triggers/slack/capabilities.ts | Extends custom-bot manifests with Agent View configuration, scopes, and subscriptions for all exposed assistant-thread events. |
| apps/sim/lib/webhooks/slack-execution-stream.ts | Implements delivery of selected workflow outputs into the originating Slack conversation. |
| apps/sim/lib/webhooks/slack-custom-ingress.ts | Normalizes custom Slack events and associates stopped Agent Sessions with workflow cancellation. |
| apps/sim/app/api/webhooks/slack/custom/[credentialId]/route.ts | Processes Agent Session stop handling alongside normal verified custom-bot dispatch. |
| apps/sim/app/workspace/[workspaceId]/integrations/components/connect-slack-bot-modal/connect-slack-bot-modal.tsx | Adds custom-bot Agent View actions, suggested prompts, validation, and manifest generation to the setup wizard. |
Sequence Diagram
sequenceDiagram
participant S as Slack
participant I as Custom bot ingress
participant W as Workflow execution
participant R as Slack response stream
S->>I: Message or assistant event
I->>W: Dispatch matching trigger
W->>R: Stream selected block outputs
R-->>S: Update originating conversation
S->>I: agent_session_stopped
I->>W: Cancel associated executions
Reviews (6): Last reviewed commit: "fix(slack): finalize agent session strea..." | Re-trigger Greptile
There was a problem hiding this comment.
All reported issues were addressed across 34 files
Tip: instead of fixing issues one by one fix them all with cubic
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
Collaborator
Author
Collaborator
Author
Collaborator
Author
TheodoreSpeaks
force-pushed
the
feat/slack-agent-apis
branch
from
August 31, 2026 22:57
79dedab to
254e734
Compare
Collaborator
Author
Collaborator
Author
TheodoreSpeaks
force-pushed
the
feat/slack-agent-apis
branch
from
September 1, 2026 01:52
1318c93 to
9535373
Compare
Sg312
added a commit
that referenced
this pull request
Sep 1, 2026
…ector resolution Rebasing onto origin/staging carried staging's lib/copilot work into our renamed lib/mothership files via rename detection; this finishes what the replay left incomplete: - Complete the #7151 port: cancel_workflow_run handler + registration on the mothership executor (types, tests, and catalog entry had already rename-followed in). - pickRunBlockOutputs awaits the now-async resolveOutputIds (#7346 made selector resolution child-workflow-aware) and re-imports isValidUuid. - Slack execution stream + tool-call-lifecycle import getToolDisplayTitle from the mothership tool-display module (#7296 semantics kept). - Resolve leftover conflict markers from the first replay's failed batch checkout (browser-tool hardening #7311, YAML bounds #7319 kept). - Drop the obsolete lib/mothership/tools/server/blocks scan root: the block-metadata tool died in the dead-code sweep; blocks reads flow through the already-guarded v2 blocks routes. - Regenerate OpenAPI, CLI API, and CLI docs from the merged contracts. Claude-Session: https://claude.ai/code/session_01CgaxNAaeD3taGdghbXn17w
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
im:write, without expanding native Sim OAuth scopesagent_session_stoppedevents to cancellation of every workflow execution associated with that Slack sessionType of Change
Testing
bun run lintbun run type-checkChecklist