Repository navigation
fix(automations): Keep event automations out of threads - #1891
Merged
Merged
Conversation
Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
marked this pull request as ready for review
September 22, 2026 22:24
Contributor
|
2 screenshot changes — 2 changed · 0 added · 0 removed Review screenshots in Frameshift
|
Co-Authored-By: David Cramer <[email protected]>
dcramer
approved these changes
Sep 22, 2026
dcramer
added a commit
that referenced
this pull request
Oct 8, 2026
A scheduled automation run posted its report at the channel top level. A PR Watch it created then posted "getsentry/yc-scraper#5 merged." as a second top-level message instead of replying in the report's thread. **Root cause** Since #1888 and #1891, automation runs have a channel-level Location with no thread. The run's first reply is bound to the Conversation, so user replies in that thread already route back to it. Watch Turns ignored that binding and posted to the channel again on every event. Event-only Conversations had the same problem. **Fix** When a Turn's Slack Location has no thread, reply under the first Slack Message bound to the Conversation in that channel. If nothing is bound yet, the first reply still starts the thread. **Known gap** When a run's only output is a DM to its creator, Watch replies still go to the channel the automation was created in. Tracked in #2014. <!-- junior-request-attribution:start --> via **David Cramer**. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0B595QDZLL%3A1791479373.496159 --> -- [View Junior Session](https://junior-prod.sentry.dev/conversations/slack%3AC0B595QDZLL%3A1791479373.496159) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0B595QDZLL%3A1791479373.496159/?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.
Extends #1888 to event automations: deliver to channels or DMs, never threads. Watches stay thread-bound.
Migration 0044 removes stored thread destinations. Reads also handle rows written by older workers during deployment; new writes reject thread fields. Already queued dispatches keep their original destination.
via David Cramer.
--
View Junior Session [Sentry]