Repository navigation
fix(resource-events): let conversations own watch routing - #1706
Merged
Merged
Conversation
Temporary resource watches were storing the turn conversation id, so agent children and other non-thread turns created undeliverable subscriptions and blew up GitHub webhook fanout. Resolve the parent Slack thread from source/destination on create, list, and stop; cancel legacy undeliverable watches on ingest instead of throwing. Co-Authored-By: David Cramer <[email protected]>
Watches store the current conversation id as-is. Delivery resolves the Slack channel and thread from the conversation destination (and root session when needed), then wakes that mailbox. Drop the old requirement that the conversation id itself be a Slack thread id. Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Every conversation can hold a resource watch. Create no longer checks conversation-id shape or hardcodes Slack. Delivery still uses Slack only when the conversation destination is Slack; otherwise it wakes the mailbox without external publish. Co-Authored-By: David Cramer <[email protected]>
Watches store conversation id + workspace team only. Delivery resolves destination/provider from the conversation chain instead of a snapshotted destination on the subscription. Co-Authored-By: David Cramer <[email protected]>
CreateResourceEventSubscriptionInput no longer takes destination; pass workspace teamId from the eval harness instead.
Resolve delivery from the conversation chain once, cancel undeliverable watches after the lock releases, and keep index team id extraction in one helper. Docs and tool copy match the conversation-owned model.
Destination and session bind once on the conversation. Resource-event delivery only wakes that mailbox using shared conversation routing, so the same provider surface and tools stay active for the whole conversation. Co-Authored-By: David Cramer <[email protected]>
Resource-event ingest only wakes the conversation mailbox with plain system input. Slack thread metadata is filled later by the Slack worker from the conversation binding, so watches stay provider-dumb. Co-Authored-By: David Cramer <[email protected]>
Keep conversation routing free of Slack infrastructure modules. Historical slack:<channel>:<ts> ids still parse via the allowed timestamp helper only.
Watches store conversation id only. Match indexes key by resource. Destination stays on the conversation binding. Clean docs and terms. Co-Authored-By: David Cramer <[email protected]>
Move resource-event publish wiring into a small helper so createApp stays within the 1000-line file policy.
Oxlint deny-warnings failed after the watch create path stopped using SLACK_DESTINATION in the steering integration test.
Drop invent-from-id historical fallback and the extra install resolver. Keep lineage inheritance plus thin slack thread completion only. Collapse redundant resource-event delivery cases and assert the mailbox contract instead of prompt string dumps. Co-Authored-By: David Cramer <[email protected]>
… wakes Plain resource-event mailbox wakes inherit the conversation destination. The Slack worker publishes from hydrated records, not the pre-hydrate flag. Co-Authored-By: David Cramer <[email protected]>
Require destination at the conversation write boundary, not on recordActivity. Children stay destinationless via lineage. Co-Authored-By: David Cramer <[email protected]>
Root upserts require a destination. Execution dual-writes skip inventing destinationless roots. Worker selection uses the bound destination only. Local-bound resource-event wakes share the conversation-only runner. Channel-level Slack sessions keep destination without inventing threadTs. Co-Authored-By: David Cramer <[email protected]>
Dashboard roots bind a local destination with a durable web session. Do not replace that identity with a synthetic local source on resume.
Root creates require a destination. Seed G-channel redaction cases with a valid private Slack destination instead of destinationless activity.
Read destination and session source from the conversation only. Do not build Slack thread metadata from conversation ids. Keep Slack hydration on the Slack worker and plain language in docs and comments. Co-Authored-By: David Cramer <[email protected]>
Keep resource-event mailbox rows plain forever. The Slack worker builds Message/Thread from the conversation destination and session source only when the turn runs, instead of rewriting inbound records with synthetic Slack metadata. Co-Authored-By: David Cramer <[email protected]>
TODO the Slack Message/Thread edge glue and the local resource_event api-turns fork so the next cut can delete them instead of moving them. Co-Authored-By: David Cramer <[email protected]>
Collapse the resource_event TODO so the file stays at 1000 lines. Co-Authored-By: David Cramer <[email protected]>
Bring main into fix/resource-watch-thread-binding. Co-Authored-By: David Cramer <[email protected]>
Empty resume wakes lose mailbox kind, so rebuild actor/source from the persisted turn user message instead of the conversation participant.
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 6feb4fa. Configure here.
This was referenced Aug 27, 2026
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.

Resource watches store only the conversation id.
Ingest wakes that mailbox with plain system input. Destination stays on the conversation binding; the bound worker applies it when the turn runs. Slack-bound conversations get thread metadata only in the Slack worker.
Match indexes key by resource (namespace + identifier). Watches no longer store teamId or destination.
Requested by David Cramer.
--
View Junior Session [Sentry]