Repository navigation
feat(automations): Let web Conversations create Automations for a public Slack channel - #3731
Merged
Merged
Conversation
…lic Slack channel createAutomation takes a destination: current_conversation (default in Slack) or a public Slack channel by id, mention, or name, resolved with the updateAutomation move resolver. A web Conversation has no Slack channel, so it must name a public channel; the team comes from the person's linked Slack Identity. The Automation stores the visibility of its Destination, not of the requesting Conversation. Co-Authored-By: David Cramer <[email protected]>
Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b7a224e. Configure here.
…ations A web Turn binds no Slack installation token, so channel checks and joins use the single bot token. Resolve the Destination workspace from that token (auth.test) instead of the caller's linked identity, and require the caller to have a Slack account there. Without a single bot token, ask from Slack.
Contributor
|
8 screenshot changes — 8 changed · 0 added · 0 removed Review screenshots in Frameshift |
dcramer
approved these changes
Nov 19, 2026
24 tasks done
dcramer
added a commit
that referenced
this pull request
Nov 20, 2026
…aceholder gaps (#3800) Daily design-docs check of the files that the last day of commits on `main` could affect. **design/automations.md** - New entry point: a dashboard Conversation creates an Automation by naming a public Slack channel as the Destination. #3731 added this on purpose (`packages/junior/src/chat/automations/tool-destination.ts`). **design/google.md** - New gap: `readMeetingTranscript` reads the organizer's transcript Doc for any invited requester. It never checks that the requester can open the Doc (`packages/junior-google/src/tools/read-meeting-transcript.ts`, `isInvited` checks only). A transcript is a Doc like any other, so this breaks the goal "never reads … a file for a person who could not" and the rule "reads a file … only for a requester who can open it". **design/guardian.md** - Intent change: the credential-fact goal covers every placeholder credential in the Sandbox again, not only plugins that declare `credentials`. #3707 narrowed it to match the code. The goal from #3694 is that Guardian does not deny a normal plugin API call as a secret leak, and that applies to every plugin with a placeholder. - New gap: GitHub (`GITHUB_TOKEN`), Vercel (`VERCEL_TOKEN`), and Datadog (`DD_API_KEY`) set their placeholders through `commandEnv`, so `guardianPluginFacts` (`packages/junior/src/chat/guardian/policy.ts`) adds no fact for them. **design/child-agents.md** - New gap: `archiveAgent` refuses a Task ("Only a Thread can be archived", `packages/junior/src/chat/tools/runtime/archive-agent.ts`). This breaks "a parent manages the lifecycle of its child agents", which covers Tasks too. **design/inbox-stacks.md** - Cut: the root-field implementation sentence, the comparison with the classic Inbox look, and the planned-work note on server snoozes. <!-- junior-request-attribution:start --> via [automation `sched_5076e4cb686a5e474279137daf734019`](https://junior-prod.sentry.dev/automations/sched_5076e4cb686a5e474279137daf734019) · Run ID `sched_5076e4cb686a5e474279137daf734019:1795107600000`, @dcramer. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent-dispatch%3Adispatch_509b6a72ce950f6eb33f1038ac0f2fe4 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_509b6a72ce950f6eb33f1038ac0f2fe4) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_509b6a72ce950f6eb33f1038ac0f2fe4/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: David Cramer <[email protected]>
dcramer
added a commit
that referenced
this pull request
Nov 21, 2026
#3731 lets `createAutomation` and `updateAutomation` name a public Slack channel as the Destination, and Junior joins that channel when it is not a member. Managing channel membership makes the Automation platform more complicated than it needs to be right now. With this change, a named channel must be one that Junior is already in. If Junior is not in it, create and move fail with a tool error that says someone must add Junior to the channel. Junior never calls `conversations.join` for an Automation Destination. `current_conversation` works the same as before. Behavior change: before #3731, a move to a public channel Junior was not in also joined that channel. That move now fails, the same way create does. <!-- junior-request-attribution:start --> via @dcramer. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A8cc79933a2b34697d745b41231f88739 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A8cc79933a2b34697d745b41231f88739) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A8cc79933a2b34697d745b41231f88739/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: David Cramer <[email protected]>
This branch was successfully deployed
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.

A web Conversation, such as the planned private
lead, could not create an Automation, because the tools took the Destination only from a Slack Location. Automations still deliver only to Slack (#3728). Now a web Conversation creates one by naming a public Slack channel.createAutomationgetsdestination:current_conversation(the default in Slack) or a public Slack channel by id, mention, or known name. A web Conversation has nocurrent_conversation, so it must name a channel. DMs and private channels stay reachable only from inside them.updateAutomationmove resolver, now inchat/automations/tool-destination.ts. A web Turn binds no Slack installation token, so with no Slack Location the workspace is the bot token's own team, and the caller must have a linked Slack account there. An install with no single bot token cannot create from web; the person asks from Slack instead.conversationAccessfrom its Destination, not from the requesting Conversation.unclear_destinationfor a channel the person did not ask for. New Guardian eval cases from a private web context: a channel the person named is allowed; a public channel the agent picked asks.via @dcramer.
--
View Session [Sentry]