Repository navigation
fix(events): Keep automation Watch replies in the run's thread - #2069
Merged
Merged
Conversation
Automation runs post their first reply at the channel top level. Later Watch Turns in the same Conversation read the channel-level Location and posted new top-level Messages instead of replying in that thread. Event Turns now thread under the first Slack Message bound to the Conversation in its Location's channel. Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
7 screenshot changes — 7 changed · 0 added · 0 removed Review screenshots in Frameshift |
Co-Authored-By: David Cramer <[email protected]>
sentry-junior Bot
added a commit
that referenced
this pull request
Oct 9, 2026
An automation run's first post at the channel top level starts its thread, but the run kept a channel-level Location. #2069 looked the thread up in event Turns only, so other Location readers still pointed at the channel. Store the thread on the Location when the post is bound, and remove the lookup. Co-Authored-By: David Cramer <[email protected]>
sentry-junior Bot
added a commit
that referenced
this pull request
Oct 9, 2026
An automation run's first post at the channel top level starts its thread, but the run kept a channel-level Location. #2069 looked the thread up in event Turns only, so other Location readers still pointed at the channel. Store the thread on the Location when the post is bound, and remove the lookup. 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 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.
via David Cramer.
--
View Junior Session [Sentry]