Repository navigation
feat(resource-events): Add conversation event subscriptions - #697
Merged
Merged
Conversation
Add conversation-bound subscriptions for provider resource events so agents can subscribe to tool-result resources and receive queued mailbox notifications later. Expose subscribable resource hints through the plugin API, add the core subscription tools and state store, and document the plugin/runtime contract for normalized resource events. Refs GH-682 Co-Authored-By: GPT-5 Codex <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Store active resource event subscription records and indexes with TTLs derived from the subscription expiry instead of the shorter conversation state TTL. Refs GH-682 Co-Authored-By: GPT-5 Codex <[email protected]>
Include Slack installation metadata on resource event mailbox records so event-only deliveries can resolve the workspace token. Refs GH-682 Co-Authored-By: GPT-5 Codex <[email protected]>
Re-read matched resource event subscriptions under their status lock before enqueueing notifications so cancellation, expiry, and terminal completion cannot race stale matches. Refs GH-682 Co-Authored-By: GPT-5 Codex <[email protected]>
Keep resource-event subscriptions generic in core while leaving provider-specific refs and event names in provider code. Parse public and runtime event boundaries strictly, remove unused subscription state, and run queued resource notifications as system-actor Slack turns instead of synthetic user requests. Refs GH-682 Co-Authored-By: GPT-5 Codex <[email protected]>
dcramer
marked this pull request as ready for review
June 30, 2026 20:34
Keep resource-event auth failures out of requester-backed pause flows, continue event ingest when one subscription lock is busy, and replay GitHub PR subscription hints from stored idempotency input. Refs GH-682 Co-Authored-By: GPT-5 Codex <[email protected]>
Fail resource-event ingest after best-effort delivery when a matched subscription cannot be delivered, so provider retries can recover skipped notifications without blocking later subscriptions. Keep terminal delivery from completing a subscription that was refreshed during delivery, and prepare resource-event Slack turns without a synthetic requester. Refs GH-682 Co-Authored-By: GPT-5 Codex <[email protected]>
Keep createPullRequest idempotency parsing compatible with records written before stored input was added, while using stored input for new completed replays. Refs GH-682 Co-Authored-By: GPT-5 Codex <[email protected]>
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 bf521ba. Configure here.
Propagate the mailbox append result through resource-event delivery so duplicate provider event keys do not inflate ingest counters. Keep the existing idempotent queue nudge behavior while reporting enqueued only for newly appended mailbox messages. Co-Authored-By: GPT-5 Codex <[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.

Adds the initial conversation-bound resource event subscription path. Provider tools can return a strict
subscribablehint with an opaqueresourceRef, the agent can subscribe the current conversation to provider-defined event types, and matching normalized events are queued through the existing conversation mailbox instead of steering an active run.Core owns subscription storage, TTLs, cancellation, event matching, and mailbox delivery. Provider-specific refs, event names, and summaries stay in provider code; the GitHub MVP exposes pull request hints and normalized PR events. Queued Slack resource notifications run as
resource-eventsystem-actor turns with no synthetic user credential context.The plugin/runtime specs and generated API reference are updated for the MVP surface, including the zod-backed
SubscribableResourcetype andresource_eventconversation source.Refs GH-682